generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Is your feature request related to a problem? Please describe.
I have been using a bespoke solution to this problem with the vanilla persist middleware and love this higher order approach, however, there is no onRehydrate callback so I can't check if hydration has occurred and if not, block rendering or show a loading screen. In your sample app, it briefly shows 0 before updating to the correct value which is undesirable.
Describe the solution you'd like
I would like to be able to somehow check if the store has hydrated yet.
Describe alternatives you've considered
I have though about how to solve this and don't see any concise way to do so.
Additional context
N/A
nathan-logan and gormonn
Metadata
Metadata
Assignees
Labels
No labels