Prerequisite Reducer Concepts Redux Reducer Basics Pure Functions and Side Effects Immutable Data Management Normalizing Data Prerequisite Reducer Concepts As described in ...
Normalizing State Shape Designing a Normalized State Organizing Normalized Data in State Relationships and Tables Normalizing Nested Data Normalizing State Shape Many appli...
State 范式化 设计范式化的 State 组织 State 中的范式化数据 表间关系 嵌套数据范式化 State 范式化 事实上,大部分程序处理的数据都是嵌套或互相关联的。例如,一个博客中有多篇文章,每篇文章有多条评论,所有的文章和评论又都是由用户产生的。这种类型应用的数据看上去可能是这样的: const blogPosts = ...
Redux FAQ: Organizing State Table of Contents Organizing State Do I have to put all my state into Redux? Should I ever use React's setState()? Further information Can I put func...
Redux 常见问题:组织 State 目录 组织 State 必须将所有 state 都维护在 Redux 中吗? 可以用 React 的 setState() 方法吗? 补充资料 可以将 store 的 state 设置为函数、promise或者其它非序列化值吗? 补充资料 如何在 state 中组织嵌套及重复数据? 补充资料 ...
Managing Normalized Data Standard Approaches Simple Merging Slice Reducer Composition Other Approaches Task-Based Updates Redux-ORM Managing Normalized Data As mentioned ...