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

Use better serializer for snapSaveState #54

Open
stereobooster opened this issue Nov 25, 2017 · 3 comments
Open

Use better serializer for snapSaveState #54

stereobooster opened this issue Nov 25, 2017 · 3 comments

Comments

@lemmih
Copy link
Contributor

lemmih commented Nov 25, 2017

This may or may not be useful to anyone: I use redux and my state is not serializable but my actions are. I serialize the actions and then use them to recreate the state.

@stereobooster
Copy link
Owner Author

Well serializers code is not specific to Redux state. It is about serializing anything you pass. If your actions contain, for example, JS Date in payload you will be affected by this issue too.

@stereobooster
Copy link
Owner Author

this looks promising https://github.com/Rich-Harris/devalue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants