mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
* add tests ensuring that onRehydrateStorage is always passed the latest state * fix persist to always pass latest state to onRehydrateStorage and onHydrate listeners * document that tests for onHydrate during first hydration are not possible * ensure state updates during onHydrate are reflected in onRehydrateStorage callback * undo modifications to persist's old implementation