Does useAsyncGql work like useAsyncData? Can I WATCH a reactive variable to get new data? #502
michaelpumo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As mentioned, I need to be able to refetch data but the following code does not do this.
What's the pattern for getting new data when something changes? I can't see it documented at all in the docs.
https://nuxt-graphql-client.web.app/getting-started/composables#useasyncgql
Thanks.
🎉🎉🎉🎉🎉
EDIT: I figured out that you can use
useAsyncData
directly for a more verbose approach, which appears to work withwatch
.🎉🎉🎉🎉🎉
Beta Was this translation helpful? Give feedback.
All reactions