Releases: zewish/redux-remember
5.2.0
5.1.0
Add optional errorHandler
error handler hook function which is gets a first argument of type PersistError
or RehydrateError
- these include a full error stack trace pointing to the source of the error. If this option isn't specified the default behaviour is to log the error using console.warn()
5.0.1
5.0.0
Notable changes:
- Upgrade and and make sure to support [email protected]+ and RTK2.0.1+. In case you want to keep using this library with an older versions of Redux or Redux Toolkit you'll need to use version 4.2.2 of Redux Remember;
- Remove old-school UMD build since none of the projects we depend on seem to provide such builds with their latest relases;
4.2.2
4.2.1
4.2.0
Adds a new option, called initActionType
which allows for asynchronous initialization after init action is dispatched. This is used in special cases whenever you want to do something before state gets rehydrated and persisted automatically (e.g. preload your state from SSR, then fire the init action like next-redux-wrapper
does).
This is a non-breaking change - the new option is disabled by default, so nothing changes for existing users.