async-reducer-context
Version:
通过react-context,useReducer替代redux,可扩展支持与redux周边middleware中间件,通过useModel(['key'])可获取state和dispatch,其中useModel已做到获取的属性值变化,组件才会重新渲染,摆脱useContext因context中无关数据导致的重复渲染问题。
53 lines (52 loc) • 1.35 kB
JSON
{
"name": "async-reducer-context",
"version": "1.3.1",
"description": "",
"main": "libs/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc -t es5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Impress-semirding/react-saga-hook.git"
},
"keywords": [
"react",
"reactjs",
"redux-thunk",
"redux-promise",
"redux-saga",
"hook",
"useContext",
"useReducer"
],
"author": "steven Ding",
"license": "ISC",
"bugs": {
"url": "https://github.com/Impress-semirding/react-saga-hook/issues"
},
"homepage": "https://github.com/Impress-semirding/react-saga-hook#readme",
"peerDependencies": {
"react": "^17.0.2",
"lodash": "^4.17.21",
"redux-saga": "^1.1.3"
},
"devDependencies": {
"@types/lodash": "^4.14.171",
"@types/react": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"babel-loader": "^8.2.2",
"eslint": "^7.28.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^2.4.1",
"jest": "^27.0.6",
"ts-loader": "^9.2.3",
"typescript": "^4.3.2"
}
}