The persist and devtools middleware are improved thanks to @Tnalxmsk and @dgesteves!
Release note
- The
persistmiddleware now supportsPromiseLikeresults from storage reads, migrations, and migration writes.persist.rehydrate()now returns a nativePromise<void>, which you can await to ensure hydration is complete. - The
devtoolsmiddleware now supports dispatching store actions directly from Redux DevTools using the newactionCreatorsoption. It also supports nested actions and arguments.
What's Changed
- fix(middleware): persist migration supporting promise-like by @dai-shi in #3583
- fix(middleware): devtools action dispatching by @dai-shi in #3595
Full Changelog: v5.0.16...v5.1.0