Why redux store should be serializable?

前端 未结 3 1887
醉话见心
醉话见心 2021-01-08 00:19

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

3条回答
  •  心在旅途
    2021-01-08 01:02

    @timo 's answer is correct. In addition, I recommend a library called Redux-ORM to work with normalized/relational data in your Redux store. See my recent comment at Dealing with data consistency in a very large store in React + Redux SPA SaaS for links to more information.

提交回复
热议问题