1. 首页
  2. 移动开发
  3. 其他
  4. redux action chain hor:高阶reducer使得可以一次调度一系列动作 源码

redux action chain hor:高阶reducer使得可以一次调度一系列动作 源码

上传者: 2021-04-04 23:12:34上传 ZIP文件 73.55KB 热度 14次
redux-action-chain-hor 高阶reducer使得可以立即调度一系列动作。 用法 这个软件包提供了Redux动作创建者和处理该动作的高阶reducer,该动作允许调度一次动作数组,仅通知一次连接的组件。 应该这样使用: // during store creation import { createStore } from 'redux' import { supportActionChain } from 'redux-action-chain-hor' const reducer = ( state , action ) => { // reducer code goes here } const store = createStore ( // wrap your reducer with supportActionChain supportActio
下载地址
用户评论