红联Linux门户
Linux帮助

Redux 1.0正式版发布,Flux热重载工具

发布时间:2015-08-16 09:19:05来源:红联作者:empast
Redux 1.0 正式版发布!此版本相比 1.0.0-rc 版本只有一个重大改进:

If dispatch is attempted while reducer is executing, an error is thrown. Note that you can dispatch from lifecycle hooks just fine. It's only reducers that are not allowed to dispatch. (#368)

GitHub 库迁移到:https://github.com/rackt/redux

其他改进

Unsubscribing during a dispatch is now fixed: #462

bindActionCreators now can also accept a function as the first argument: #352

Dispatching from iframe now works: #304

Symbols can be used as action types: #295 (Note: we don't recommend you to do this, because they're not serializable, so you can't record/replay user sessions.)

Redux 是最流行的 Flux 衍生类框架之一,它为 JavaScript 应用提供可预测化的状态管理容器,可以用于构建前后端同构应用或移动端应用。

安装

npm install redu

GitHub 地址:https://github.com/rackt/redux/releases/tag/v1.0.0

相关链接

* Redux 英文文档:http://rackt.github.io/redux/

* Redux 中文文档:https://github.com/camsong/redux-in-chinese

来自:开源中国社区
文章评论

共有 0 条评论