Skip to content

Commit

Permalink
fix:typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuL0703 authored Jul 27, 2019
1 parent 03b8840 commit b198d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 056.精读《重新思考 Redux》.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const incrementAsync = async count => {
### 将 action + reducer 改为两种 action

redux 抽象的 action 与 reducer 的指责很清晰,action 负责改 store 以外所有事,而 reducer 负责改 store,偶尔用来做数据处理。这种概念其实比较模糊,因为往往不清楚数据处理放在 action 还是 reducer 里,同时过于简单的 reducer 又要写 action 与之匹配,感觉过于形式化,而且繁琐。
redux 抽象的 action 与 reducer 的职责很清晰,action 负责改 store 以外所有事,而 reducer 负责改 store,偶尔用来做数据处理。这种概念其实比较模糊,因为往往不清楚数据处理放在 action 还是 reducer 里,同时过于简单的 reducer 又要写 action 与之匹配,感觉过于形式化,而且繁琐。

重新考虑这个问题,我们只有两类 action:`reducer action``effect action`

Expand Down

0 comments on commit b198d57

Please sign in to comment.