文件名称:redux-bind-selectors:Redux存储增强器,用于通过将选择器绑定到存储来计算派生状态
文件大小:98KB
文件格式:ZIP
更新时间:2024-05-19 01:40:35
redux reselect JavaScript
Redux绑定选择器 甲Redux的用于通过结合选择到计算派生状态商店,这样getState()合并导出的数据。 import { createStore } from 'redux' import bindSelectors from 'redux-bind-selectors' const store = createStore ( myReducer , // The Redux reducer { numbers : [ 4 , 6 , 9 , 2 ] } , // Initial state (optional) bindSelectors ( { total } ) // Bind the `total` selector ) store . getState ( ) // { // numbers: [4, 6, 9, 2], // <-- initial
【文件预览】:
redux-bind-selectors-master
----.gitignore(54B)
----README.md(4KB)
----.github()
--------workflows()
--------dependabot.yml(154B)
----rollup.config.js(431B)
----DCO1.1.txt(1KB)
----package.json(2KB)
----CONTRIBUTING.md(682B)
----src()
--------bind-selectors.spec.js(6KB)
--------bind-selectors.js(2KB)
----.babelrc(39B)
----LICENSE.md(1KB)
----.npmignore(59B)
----package-lock.json(444KB)