This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
4.0.0
NEW FEATURE
- Flexible state merger functions (issue #93 / PR #104)
- simple: merge plain old JS structures (default)
- immutablejs: merge plain old JS and ImmutableJS
objects
- If
NODE_ENV != 'production'
, the save action issued by redux-storage contains ameta.origin
with the action that trigged this save request. This is a pretty useful feature, if you want to track the origins of the save requests (issue #100 / PR #102)
BREAKING CHANGES
As we now support flexible state merger functions, ImmutableJS has completely been removed from this project! So if you're using redux-storage with ImmutableJS, you have to pass redux-storage-merger-immutablejs as second argument to storage.reducer
!
Old
const reducer = storage.reducer(combineReducers(reducers));
New
$ npm install --save redux-storage-merger-immutablejs
import immutableJsMerger from 'redux-storage-merger-immutablejs';
const reducer = storage.reducer(combineReducers(reducers), immutableJsMerger);