I'd like to store stuff in redux store, and want to know which one is serializable and which one is not.
- class MyClass { }
- var myClass = new MyClass
Specifically, are #1, #2 serializable?
What's the test/definition of serializability?
Whether JSON.stringify() works without error?
https://github.com/markerikson/redux/blob/create-faq-page/docs/FAQ.md
Can I put functions, promises, or other non-serializable items in my store state?
It is highly recommended that you only put plain serializable objects, arrays, and primitives into your store. It's technically possible to insert non-serializable items into the store, but doing so can break the ability to persist and rehydrate the contents of a store.