mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Fix store-persistence example (#2667)
This commit is contained in:
parent
7c14615815
commit
2875d0717d
@ -575,7 +575,7 @@ const useBoundStore = create(
|
|||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
onRehydrateStorage: (state) => {
|
onRehydrateStorage: (state) => {
|
||||||
state.setHasHydrated(true)
|
return () => state.setHasHydrated(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user