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

Hot reloading with immutable.js data structures #330

Closed
BrianHanechak opened this issue Jan 4, 2017 · 4 comments
Closed

Hot reloading with immutable.js data structures #330

BrianHanechak opened this issue Jan 4, 2017 · 4 comments

Comments

@BrianHanechak
Copy link

I'm having the following problem with hot reloading.... I have a fairly complicated application, and some portions of my state use Immutable list objects. Everything works and the plugin display shows me the contents of the lists as if they were arrays. When I try to do hot-reloading using the debug_session=123 (or similar) query string parameter, upon reload, the system replaces the Immutable.List objects with regular arrays, which causes my application to not work properly.

I'm using the Chrome plug-in version. I just updated to version 2.11.1.1 (which is still having this problem.)

@zalmoxisus
Copy link
Collaborator

zalmoxisus commented Jan 4, 2017

You should specify deserializeState parameter.

@BrianHanechak
Copy link
Author

Thanks! After adding deserializeState and deserializeActions, this is working well. (Although I am running out of local storage space; I will file a separate issue.)

@zalmoxisus
Copy link
Collaborator

zalmoxisus commented Jan 6, 2017

@zalmoxisus
Copy link
Collaborator

Redux DevTools Extension got full support for ImmutableJS out of the box, just pass the Immutable library in serialize parameter. See the release notes for more details.

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