Skip to content

More reusable reducer logic #2278

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

Closed
Voronar opened this issue Mar 3, 2017 · 2 comments
Closed

More reusable reducer logic #2278

Voronar opened this issue Mar 3, 2017 · 2 comments

Comments

@Voronar
Copy link

Voronar commented Mar 3, 2017

According to this issue I suggest improved approach.

P.S. Yes, I have found Dan warning about symbol constants.

@markerikson
Copy link
Contributor

This isn't a bug report or an actual feature request. You're welcome to use this approach in your own code, although as you've seen already, use of Symbols will cause the DevTools to not always work as expected. Also see this entry in the FAQ: http://redux.js.org/docs/faq/Actions.html#actions-string-constants

@Voronar
Copy link
Author

Voronar commented Mar 4, 2017

Symbol is not a problem. Just try this implementation.

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

No branches or pull requests

2 participants