Fix store-persistence example (#2667)

This commit is contained in:
Jesper Sørensen 2024-08-08 02:27:01 +02:00 committed by GitHub
parent 7c14615815
commit 2875d0717d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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