-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Best way to re-execute query #14
Comments
I'm not using the "official" graphql variable. I've read your doc, but without success :) Thanks ! |
You could introduce the You could create a reactive query: const query = computed(() => {
if (something) {
return `{ titi }`
}
return `{ toto }`
});
const { data } = useQuery({
query
}); and whenever the query will change the |
Hello, thanks for your great job :)
Small question, i want to re-excute a query when a variable change,
In this case lang change, what the best way to re-excute query ? watch lang and manually fetch the data ?
Thanks
The text was updated successfully, but these errors were encountered: