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 dispatch shorthand example to documentation #804

Merged
merged 3 commits into from
Oct 10, 2017

Conversation

mudrz
Copy link
Contributor

@mudrz mudrz commented Oct 10, 2017

docs/api.md Outdated
// shorthand object, a map between the names of the callback props
// that we want to inject and the action creator functions that create the corresponding actions
// in this case the action creator `addTodo` will be mapped and dispatched through property `addTodo2`
// it is a good practice to keep names 1:1 to make mapping even easier - `deleteTodo`
Copy link
Member

Choose a reason for hiding this comment

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

We can probably drop this comment block and avoid the renaming example. It just makes this seem more complex than it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

simplified it

mudrz and others added 2 commits October 10, 2017 22:12
removed rename, simplified comment
@timdorr
Copy link
Member

timdorr commented Oct 10, 2017

Thanks!

@timdorr timdorr merged commit a875a4c into reduxjs:master Oct 10, 2017
josepot pushed a commit to josepot/react-redux-lean that referenced this pull request Sep 21, 2018
* Add dispatch shorthand example to documentation

* Update api.md

removed rename, simplified comment

* Cleanups
webguru7 pushed a commit to webguru7/react-redux that referenced this pull request Dec 8, 2022
* Add dispatch shorthand example to documentation

* Update api.md

removed rename, simplified comment

* Cleanups
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