Why redux store should be serializable?
问题 When reading the redux doc I found that the doc mentioned this: Still, you should do your best to keep the state serializable. Don't put anything inside it that you can't easily turn into JSON. So my question is, what's the benefit of keeping state serializable? Or, what difficulties I may have if I put non-serializable data into store? And I believe this is not unique to redux - Flux, even React local state suggest the same thing. To make me clear here is an example. Suppose the store