UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

18 lines 432 B
/** * Get a callback to remove all items from the store * * @example * import { useResetStore } from 'react-admin'; * * const ResetPrefs = () { * const reset = useResetStore(); * * const handleClick = () => { * reset(); * }; * * return <Button onClick={handleClick}>Reset preferences</Button>; * } */ export declare const useResetStore: () => () => void; //# sourceMappingURL=useResetStore.d.ts.map