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
loadingKey for mutation #23
Comments
I'm also having problems with loadingKey |
There is no this.loading ++
this.$apollo.mutate({
// Query
mutation: gql`mutation ($label: String!) {
addTag(label: $label) {
id
label
}
}`,
// Parameters
variables: {
label: newTag,
},
}).then((data) => {
this.loading --
}).catch((error) => {
this.loading --
}); |
Any plans to support loadingKey for mutation? |
+1 |
+1 |
2 similar comments
+1 |
+1 |
Are there plans for this? We have a lot of cases where we do live updated forms, and want to have a "saving..." a la Google Docs. The amount of places we'd need to track variables for the mutation is doable but would be a lot easier if mutation just had a loadingKey instead of having to track variables in many different components. I checked out the source code for adding this feature in a PR but at first look it seems more complex than I expected. |
Maybe you can use the |
That looks plausible. In one case, we have a form with 10 fields. If the user changes a field, we send a mutation to the server with the update, and at the top of the form show "saving". When the migration is done, we show "saved" for a few seconds. It looks like if we wrap the whole form with the |
|
+1 |
This comment has been minimized.
This comment has been minimized.
I expected to at least have |
+1 |
June 2021 and |
is it just me or loadingKey is not woking for mutations?
The text was updated successfully, but these errors were encountered: