Use better serializer for snapSaveState
stereobooster opened this issue · comments
stereobooster commented
Possible alternatives
- https://github.com/MaiaVictor/LJSON
- https://github.com/jed/lave
- https://github.com/yahoo/serialize-javascript
- https://github.com/benjamn/arson
- https://github.com/pugjs/js-stringify
- http://browserify.org/
- https://github.com/chakrit/node-uneval
- https://github.com/skeeto/resurrect-js
- https://github.com/mobxjs/serializr
- https://www.npmjs.com/package/serializer.ts
David Himmelstrup commented
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 commented
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 commented
this looks promising https://github.com/Rich-Harris/devalue