Skip to content

List is now being rehydrated as Map #29

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

Closed
brunolemos opened this issue May 23, 2017 · 3 comments
Closed

List is now being rehydrated as Map #29

brunolemos opened this issue May 23, 2017 · 3 comments

Comments

@brunolemos
Copy link

brunolemos commented May 23, 2017

I upgraded react-native from 0.43 to 0.44 and redux-persist-immutable from 4.1.0 to 4.3.0 and now a List on my reducer (e.g. List(['a', 'b']) is being rehydrated as Map({ 0: 'a', 1: 'b' }).

Reproduction (reducer example)

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

Before rehydration

image

After rehydration

image

@brunolemos
Copy link
Author

I don't know what was happening... Reinstalled npm packages and seems fine now.

@brunolemos
Copy link
Author

Yeah this is really happening. @rt2zz which package could be causing this?

@brunolemos
Copy link
Author

Duplicated of glenjamin/transit-immutable-js#36, workaround applied successfully.

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

1 participant