Skip to content

Conversation

erykpiast
Copy link
Contributor

I hope it's true this time.

```javascript
function mapStateToProps() {
console.log(arguments[0]); // state
function mapDispatchToProps(state) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be mapStateToProps

Copy link
Contributor Author

@erykpiast erykpiast Jun 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth to show that this is about mapDispatchToProps too, that's why I did it. You wish to have all examples consistent I guess?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The confusing part is the argument is still named "state". I would probably just use mapStateToProps in both examples.

@gaearon gaearon merged commit ac12598 into reduxjs:master Jul 1, 2016
@gaearon
Copy link
Contributor

gaearon commented Jul 1, 2016

Thanks!

foiseworth pushed a commit to foiseworth/react-redux that referenced this pull request Jul 30, 2016
albertodev7 pushed a commit to albertodev7/react-redux that referenced this pull request Dec 8, 2022
Correct `ownProps` note and examples
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