useStoreContext

This hook allows to access the global Store.

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

Syntax

import { useStoreContext } from 'react-admin';

const store = useStoreContext();