| layout | default |
|---|---|
| title | useResetStore |
This hook allows to empty the Store. React-admin uses it at logout.
import { useResetStore } from 'react-admin';
const reset = useResetStore();
reset();import { useResetStore, Button } from 'react-admin';
const ResetButton = () => {
const reset = useResetStore();
return (
<Button onClick={() => reset()}>
Reset store
</Button>
);
};