Update persisting-store-data.md (#2650)

This commit is contained in:
donutcube 2024-07-17 17:03:29 -07:00 committed by GitHub
parent 688ddc9f92
commit e13777495a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,7 +574,7 @@ const useBoundStore = create(
}),
{
// ...
onRehydrateStorage: () => (state) => {
onRehydrateStorage: (state) => {
state.setHasHydrated(true)
}
}