stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use better serializer for snapSaveState

stereobooster opened this issue · comments

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.

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.