-
Notifications
You must be signed in to change notification settings - Fork 41
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
Infer action types from action creators instead of using separate Flow types #11912
Comments
There is a better version here: facebook/flow#4002 (comment) |
Well, huh. I can get things to work in Flow Try but not in our code. It seems to always set |
I just tried doing this as well, for a new action I was adding to the collections reducer, and noticed that flow reports the type as |
Actually, I take that back. I think it does work. I'll put up a PR and someone else can check to see if it looks like it's working. |
Ugh, now I cannot get it to work again. :-( Nevermind me. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions. |
This article has a recipe for inferring action types from action creator functions instead of defining, exporting, and maintaining separate action types. This will make everything simpler.
For example, instead of this:
We can do this:
The text was updated successfully, but these errors were encountered: