Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Blazej Sewera <[email protected]>
  • Loading branch information
arvinxx and sewera authored Apr 18, 2023
1 parent e25aeb7 commit 43aa0cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/integrations/persisting-store-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ export const useBoundStore = create(
```tsx
import { useBoundStore } from './path-to-store';

export function StoreConsumer(){
export function StoreConsumer() {
// hydrate persisted store after on mount
useEffect(() => {
useBoundStore.persist.reHydrate();
useBoundStore.persist.rehydrate();
}, [])

return (
Expand Down

0 comments on commit 43aa0cd

Please sign in to comment.