Skip to content

Commit

Permalink
Update persisting-store-data.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Apr 17, 2023
1 parent 8d22532 commit e25aeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/integrations/persisting-store-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ import { useBoundStore } from './path-to-store';
export function StoreConsumer(){
// hydrate persisted store after on mount
useEffect(() => {
store.persist.reHydrate();
useBoundStore.persist.reHydrate();
}, [])

return (
Expand Down

0 comments on commit e25aeb7

Please sign in to comment.