diff --git a/docs/integrations/persisting-store-data.md b/docs/integrations/persisting-store-data.md index a9ea4a3f83..92f201a287 100644 --- a/docs/integrations/persisting-store-data.md +++ b/docs/integrations/persisting-store-data.md @@ -574,7 +574,7 @@ const useBoundStore = create( }), { // ... - onRehydrateStorage: () => (state) => { + onRehydrateStorage: (state) => { state.setHasHydrated(true) } }