Default merger function for redux-storage, used to combine loaded state with the initial reducer state. This package is part of the react-stack fork of the original, now-deprecated redux-storage ecosystem. Version 1.0.5 is the latest and has been stable since 2016. It is a simple shallow merge utility, unlike deeper mergers like redux-storage-merger-immutablejs. Requires redux-storage (>= 1.0).
npm install redux-storage-merger-simpleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the simple merger with redux-storage's reducer function to combine persisted state with the initial reducer.
Migrate to redux-persist or another modern state persistence library.
Use a deep merge solution like redux-storage-merger-immutablejs or lodash.merge if you need deep merging.
If you were using the original package by michaelcontento, the API is unchanged; just update to the latest version.
Use import merger from 'redux-storage-merger-simple';
Run npm install redux-storage-merger-simple --save
Pass merger as second argument: storage.reducer(reducer, merger);