Skip to content

Conversation

NameFILIP
Copy link

For #49

@TeemuKoivisto
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants