Usage
When you want to use a unqiue instance of a global Store but do not need a Context API.
Using the Store
Simply pass in a store to the useStore hook and recieve a memoized version of it - protected against re-renders.
Loading example...
For more information about stores, see the Stores page.
API
useStore accepts the following options:
| Params | Required | Description |
|---|---|---|
store | Yes | The store function reference to call. |
Return
useStore returns a memoized version of the store value (e.g., what the store returns);