[QUESTION] [VUE] Shared Query #7223
Unanswered
hamonCordova
asked this question in
General
Replies: 2 comments 5 replies
-
Does this example work well? I haven't tried it, but I'd love to hear your thoughts after using it. Basically, |
Beta Was this translation helpful? Give feedback.
5 replies
-
You are potentially looking for https://tanstack.com/query/latest/docs/framework/react/guides/query-options which is also available in vue. Every query that has the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Someone know if there is a way to create a reusable useQuery?
I have two components, they share the same server side state (response/data from the useQuery) and the refetch method. But i'm using composable to achive this.There is a way to do it using the Vue Query/TanStack API?
I know abou
getQuery
but i need to watch the data changes isntead of just getting it.What i'm currently doing (on Nuxt 3, composable)
Then I use like this on my components like this
There is a better whay to achive a reusable useQuery?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions