rt2zz / redux-persist-immutable

Redux Persist Immutable
MIT License
114 stars 31 forks source link

List is now being rehydrated as Map #29

Closed brunolemos closed 7 years ago

brunolemos commented 7 years ago

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 commented 7 years ago

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

brunolemos commented 7 years ago

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

brunolemos commented 7 years ago

Duplicated of https://github.com/glenjamin/transit-immutable-js/issues/36, workaround applied successfully.