Zustand v5.1.0
Zustand 5.1.0 improves the `persist` and `devtools` middleware. Persist supports promise-like storage reads, migrations, and migration writes, while `persist.rehydrate()` now returns an awaitable native `Promise<void>`; devtools can dispatch store actions using `actionCreators` and supports nested actions and arguments.
Users of the persist middleware with asynchronous storage or migrations and users dispatching actions through Redux DevTools are affected.
Use the `actionCreators` option to enable Redux DevTools action dispatching, and await `persist.rehydrate()` when code needs to ensure hydration has completed.
# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.