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 check to dispatcher for undefined action and undefined action type #40

Merged
merged 1 commit into from
Jun 5, 2016
Merged

Conversation

dmitry-zaets
Copy link
Collaborator

@dmitry-zaets dmitry-zaets commented May 25, 2016

In our team, we've been facing issues when we've misspelled action export or action type, and as a result - tests was passing but the application was failing.

Took them from redux's dispatcher method https://github.com/reactjs/redux/blob/master/src/createStore.js#L157-L162

What do you think about adding such checks into dispatcher?
I'm ok if, you don't want to overcomplicate your library with that kind of stuff.

@arnaudbenard
Copy link
Contributor

arnaudbenard commented Jun 5, 2016

@dmitry-zaets thank you for the contribution 👍

It looks good to me. If it doesn't work with people they will open issues 💃

@dmitry-zaets
Copy link
Collaborator Author

@arnaudbenard Thanks for a cool library! 👍

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.

None yet

2 participants