Skip to content

Conversation

derrickbeining
Copy link

RE:

Connect function argument #1 should be named mapDispatchToProps

I found this error message misleading since normally one does not refer to argument numbers as though they were zero-indexed. So I've just fixed the off-by-one error in the report function.

RE: 
> Connect function argument DianaSuvorova#1 should be named mapDispatchToProps

I found this error message misleading since normally one does not refer to argument numbers as though they were zero-indexed. So I've just fixed the off-by-one error in the report function.
@DianaSuvorova
Copy link
Owner

@derrickbeining , thanks for the PR. I see why starting from 0 might be confusing. I remember having the same dilemma when I was writing the code. If you think it will be less confusing to start at 1, I would gladly accept a PR although you would need to fix test failures first.

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