You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using 4.0.0-rc21, before upgrading to 4.0.0. Everytime I accessed a state I received object of original state type. But after upgrading to 4.0.0. almost all my state retrieval logic is broken due to everything is now wrapped in Immutables. I passed some objects to third party functions that don't expect them to be wrapped in Immutable. Can you please provide some showcase how to work with Immutables? Thanks in advance
The text was updated successfully, but these errors were encountered:
I see. When you pass these objects to 3rd party libraries do they mutate the objects or only read? If they mutate than it is going to throw at runtime. If they only read we can probably make it working if you could share a bit more details.
As a workaround you can remove immutable from a type, but it is probably not what you would like to have?
I had this same issue but a workaround was to copy the data when needed, like before sending through fetch I just used const data: Type = { ...state.get() }
I've been using 4.0.0-rc21, before upgrading to 4.0.0. Everytime I accessed a state I received object of original state type. But after upgrading to 4.0.0. almost all my state retrieval logic is broken due to everything is now wrapped in Immutables. I passed some objects to third party functions that don't expect them to be wrapped in Immutable. Can you please provide some showcase how to work with Immutables? Thanks in advance
The text was updated successfully, but these errors were encountered: