Back to React Admin

useStoreContext

docs/useStoreContext.md

5.14.6306 B
Original Source

useStoreContext

This hook allows to access the global Store.

It should not be used directly. Prefer the specialized hooks (useStore, useResetStore, useRemoveFromStore) instead.

Syntax

jsx
import { useStoreContext } from 'react-admin';

const store = useStoreContext();