Skip to content

Commit

Permalink
fix: getModelDispatchers (#92)
Browse files Browse the repository at this point in the history
* fix: getModelDispatchers

* chore: example @ice/store version
  • Loading branch information
alvinhui authored Apr 8, 2020
1 parent 09ba3eb commit 41586a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@ice/store": "^1.3.0",
"@ice/store": "^1.3.3",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/todos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@ice/store": "^1.3.0",
"@ice/store": "^1.3.3",
"lodash": "^4.17.15",
"react": "^16.8.6",
"react-dom": "^16.8.6"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/store",
"version": "1.3.2",
"version": "1.3.3",
"description": "Simple and friendly state for React",
"main": "lib/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/modelApis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default (): T.Plugin => {
return store.getState()[name];
}
function getModelDispatchers(name: string) {
return store.dispatch()[name];
return store.dispatch[name];
}
function withModel(name: string, mapModelToProps?) {
mapModelToProps = (mapModelToProps || ((model) => ({ [name]: model })));
Expand Down

0 comments on commit 41586a8

Please sign in to comment.