Skip to content

useStoreContext

This hook allows to access the global Store.

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

import { useStoreContext } from 'ra-core';
const store = useStoreContext();