Mar*_*elo 3 javascript reactjs redux
刚刚注意到它始终是打开页面时调度的第一个操作.它是否用于使用reducer的默认状态初始化存储?
我想这会回答你的问题.
Run Code Online (Sandbox Code Playgroud)// When a store is created, an "INIT" action is dispatched so that every // reducer returns their initial state. This effectively populates // the initial state tree. dispatch({ type: ActionTypes.INIT })
| 归档时间: |
|
| 查看次数: |
2908 次 |
| 最近记录: |