-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux #1
Comments
一个争论点,多个Action来完成一个State变更,还是一个Action完成所有变更 我是比较倾向于后面 1)多个Action会导致页面render多次 场景 �一个Action的情况 添加数据成功后 1)表单数据可清空 多个Action的情况 1)Action 1 添加数据成功 Redux作者关于这个问题的回答:redux/issues/749、redux/issues/601 |
遇到的问题�logout时需要进行数据清理 在项目中,用户登出的时候store和全部清理,如果所有reducer都监听登出事件有点傻,肯定有简单的方式 http://stackoverflow.com/questions/35622588/how-to-reset-the-state-of-a-redux-store 两种方式,其中比较简单的方式就是跳转到登录页时刷新,直接恢复至最原始�state |
Getting Started with Redux
(Redux作者录制,视频详解了 Todos 这个示例的由来,入门看这个很有帮助「如果能听懂英文」)
awesome-redux =》这里面的文章都能过一遍也就差不多了
文档&库
Redux中文文档
redux
react-redux
redux-thunk
redux-logger
Provider
的作用:传递Storeconnect()
的作用:生成容器组件中间件
http://camsong.github.io/redux-in-chinese/docs/advanced/Middleware.html
基本形式
工具
Chrome 插件 Redux DevTools
The text was updated successfully, but these errors were encountered: