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

时间:2021-03-20 13:05:37
【文件属性】:
文件名称:redux-action-chain-hor:高阶reducer使得可以一次调度一系列动作
文件大小:74KB
文件格式:ZIP
更新时间:2021-03-20 13:05:37
redux performance reducer action higher-order 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
【文件预览】:
redux-action-chain-hor-main
----rollup.config.js(484B)
----.github()
--------workflows()
----lefthook.yml(155B)
----.prettierignore(97B)
----src()
--------index.ts(854B)
--------index.spec.ts(2KB)
----.commitlintrc.js(65B)
----tsconfig.json(385B)
----LICENSE(1KB)
----jest.config.js(283B)
----README.md(2KB)
----.editorconfig(289B)
----.gitignore(574B)
----.prettierrc.js(63B)
----.renovaterc(139B)
----package-lock.json(367KB)
----package.json(2KB)

网友评论