-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Mutation Creators #160
Comments
These are my thoughts: https://gist.github.com/abhiaiyer91/6c39108c1908261a708470710977d16a |
A few thoughts: Performing validations in a component will certainly be a pattern (similar to allow and deny rules in some cases). I think a consistent way to do this is possible (and wanted), but probably wouldn't be part of the client itself. The issue of needing to refetch (https://gist.github.com/abhiaiyer91/6c39108c1908261a708470710977d16a#file-dispatchmutation-js-L36-L38) should be solved in most cases by #144 but in the meantime having an easy way to do it is nice. I'd rather return the promise directly instead of the callback. From the gist, I gather the issues with the current implementation of
If those are the only issues, it may be worth discussing adding Aside from that we need to address #144 for sure |
Yes exactly @jbaxleyiii I think it would be valuable to give that utility for validation. I think most people will implement their same validations over and over again. |
@abhiaiyer91 if you good with it, I'll open an issue around validation and close this one out? |
Let's do it |
Simple typo, QL was not capitalized as it is declared.
use typeof to check for redux devtools
This issue is to assign work surrounding the concept of
Mutation Creators
.What are Mutation Creators?
Much like Action creators are functions that create actions,
Mutation Creators
are functions that create Mutations.What needs to be done?
Mutation Creators
.The text was updated successfully, but these errors were encountered: