-
Hi, looking at https://docs.pmnd.rs/zustand/integrations/persisting-store-data#how-can-i-check-if-my-store-has-been-hydrated const useBoundStore = create(
persist(
(set, get) => ({
// ...
_hasHydrated: false,
setHasHydrated: (state) => {
set({
_hasHydrated: state
});
}
}),
{
// ...
onRehydrateStorage: () => (state) => {
state.setHasHydrated(true)
}
}
)
); but when the callback fires |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Maybe related to #1527? |
Beta Was this translation helpful? Give feedback.
-
Does it fail with only some specific versions? |
Beta Was this translation helpful? Give feedback.
-
If the code is identical from the docs, it can be a bug somewhere (in docs or in code). |
Beta Was this translation helpful? Give feedback.
If the code is identical from the docs, it can be a bug somewhere (in docs or in code).