Back to React Admin

useStoreContext

docs_headless/src/content/docs/useStoreContext.md

5.14.6281 B
Original Source

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 'ra-core';

const store = useStoreContext();