-
Notifications
You must be signed in to change notification settings - Fork 121
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
Simple example calling a mutation on click and handling the response #602
Comments
@knaeckeKami I know you're probably very busy, but if you ever get a few minutes, I would love your input on this one |
Did you check https://ferry.gql-dart.dev/docs/flutter-operation-widget#usage-with-mutations ? If yes, is there anything concrete you have question for? |
Yes thank @knaeckeKami - I did review the whole documentation. Still, from that, it's not quite easy for me to understand how I can fire a single request on submit |
You can execute |
Interesting, thanks @knaeckeKami - I'll look into it again when working on the project, and report back. Thanks! |
@knaeckeKami If it's awaited, will the loading state also be maintained? E.g. a prop on the button. |
you'll need to use basic state management approaches (setState, FutureBuilder...) for that. |
I am playing around with mutations and would like to have a simple flutter widget that has a button.
When that button is pressed the mutation will be fired, and the button should show a loading state.
It is not clear to me, having been in and out of the documentation and github issues on how to accomplish this.
Can somebody help me in the right direction?
Here me fumbling around in the dark:
The text was updated successfully, but these errors were encountered: