Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix store-persistence example #2667

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Fix store-persistence example #2667

merged 1 commit into from
Aug 8, 2024

Commits on Aug 7, 2024

  1. Fix store-persistence example

    Calling `setHasHydrated` directly in `onRehydrateStorage` causes the state to only contain the `{ _hasHydrated: true }` rather than the actual hydrated state (which I believe will be lost).
    
    `setHasHydrated` must instead be called from the function returned from  `onRehydrateStorage`, as that function will be called after the state has been hydrated.
    jeppester authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    a932d79 View commit details
    Browse the repository at this point in the history