mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Update persisting-store-data.md (#2650)
This commit is contained in:
parent
688ddc9f92
commit
e13777495a
@ -574,7 +574,7 @@ const useBoundStore = create(
|
||||
}),
|
||||
{
|
||||
// ...
|
||||
onRehydrateStorage: () => (state) => {
|
||||
onRehydrateStorage: (state) => {
|
||||
state.setHasHydrated(true)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user