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

Add ownProps to mapStateToProps and mapDispatchToProps as second parameter #59

Merged
merged 2 commits into from
Aug 17, 2015

Conversation

jhollingworth
Copy link
Contributor

If you pass in more than one argument to mapStateToProps and mapDispatchToProps then we assume you are passing in props and so pass it in. Whenever the component receives new props we will re-invoke the function.

Fixes #52

@jhollingworth
Copy link
Contributor Author

@gaearon

@gaearon
Copy link
Contributor

gaearon commented Aug 17, 2015

Good stuff. I'll merge today. ❤️

gaearon added a commit that referenced this pull request Aug 17, 2015
Add ownProps to mapStateToProps and mapDispatchToProps as second parameter
@gaearon gaearon merged commit 555ec8b into master Aug 17, 2015
@gaearon gaearon deleted the pass-in-props branch August 17, 2015 14:55
@gaearon
Copy link
Contributor

gaearon commented Aug 17, 2015

Released as 0.9.0, please verify.

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