From 89ae20e532639332034d6bac3b011f2c22b56b58 Mon Sep 17 00:00:00 2001 From: donutcube <144574434+donutcube@users.noreply.github.com> Date: Wed, 17 Jul 2024 08:33:38 -0700 Subject: [PATCH] Update persisting-store-data.md --- 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 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) } }