Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lists are being restored as Maps #36

Closed
brunolemos opened this issue May 29, 2017 · 2 comments
Closed

Lists are being restored as Maps #36

brunolemos opened this issue May 29, 2017 · 2 comments

Comments

@brunolemos
Copy link

brunolemos commented May 29, 2017

I'm not sure this is an issue with this package or with https://github.com/rt2zz/redux-persist-immutable (that uses this package), so I'm posting on both. cc @rt2zz

I use redux, and List or Set is being rehydrated as objects.

Reproduction (reducer example)

return Map({
  test1: List(['a', 'b', Math.random()]),
  test2: Set(['a', 'b', Math.random()]),
})

Before rehydration

image

After rehydration

image

@nkbt
Copy link

nkbt commented May 29, 2017

Must be a duplicate of #32

See comments for solutions

@brunolemos
Copy link
Author

Thanks @nkbt it was indeed a duplicate!
Posted my fix here, to the ones using react-native: facebook/react-native#13746 (comment)

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

No branches or pull requests

2 participants