Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

允许从 this.props 而来的函数名以dispatch 开头 #1500

Merged
merged 3 commits into from
Dec 13, 2018

Conversation

lbb00
Copy link

@lbb00 lbb00 commented Dec 13, 2018

例如:

const mapDispatchToProps = dispatch =>({
  dispatchA(){
    dispatch(actions.Foo())
  },
  dispatchB(){}
})

例如:

```javascript
const mapDispatchToProps = dispatch =>({
  dispatchA(){
    dispatch(actions.Foo())
  },
  dispatchB(){}
})
```
@lbb00
Copy link
Author

lbb00 commented Dec 13, 2018

eslint 一直报红,mapDispatchToProps 没法用 ,不如支持一下咯。╮(╯_╰)╭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants