useStoreOrStoreById
The useStoreOrStoreById hook is used to get a reference to a Store object from a Provider context, or have it passed directly.
useStoreOrStoreById(storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>): () => Store | undefined| Type | Description | |
|---|---|---|
storeOrStoreId? | MaybeGetter<undefined | StoreOrStoreId> | |
| returns | () => Store | undefined | A getter function returning the |
Since
v8.1.0