From 2875d0717d557227632e6553a8936a648f8ef01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20S=C3=B8rensen?= Date: Thu, 8 Aug 2024 02:27:01 +0200 Subject: [PATCH] Fix store-persistence example (#2667) --- docs/integrations/persisting-store-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/persisting-store-data.md b/docs/integrations/persisting-store-data.md index 92f201a287..8d63cc5726 100644 --- a/docs/integrations/persisting-store-data.md +++ b/docs/integrations/persisting-store-data.md @@ -575,7 +575,7 @@ const useBoundStore = create( { // ... onRehydrateStorage: (state) => { - state.setHasHydrated(true) + return () => state.setHasHydrated(true) } } )