Open NameFILIP opened 8 years ago
Cool stuff and I wondered why there was no immutable example on this repo (probably because it's unmaintained?). The PR #57 is way too convoluted for my liking and this one is all good except I had to change this:
merge: (initialState, persistedState) => initialState.mergeDeep(persistedState),
To this:
merge: (initialState, persistedState) => new Map(initialState).mergeDeep(persistedState)
For it to work.
Perhaps the maintainers of this repo will merge this someday although I am not too hopeful.
For https://github.com/elgerlambert/redux-localstorage/issues/49