UseQueries not working with refs in Vue. #7220
-
Describe the bugThanks for your great work! UseQueries is not working while a vue ref changes: https://codesandbox.io/p/devbox/eager-marco-y3q4ty?file=%2Fsrc%2FPosts.vue%3A34%2C28 Can the queries parameter watch some refs, for example, we need to do some business logic to check if we need to use Thanks! Your minimal, reproducible examplehttps://codesandbox.io/p/devbox/eager-marco-y3q4ty?file=%2Fsrc%2FPosts.vue%3A34%2C28 Steps to reproduceIn the file posts.vue, line 34 seems not working. Expected behaviorThe ref can be watched, if it chagnes, call the queryFn. How often does this bug happen?Every time Screenshots or VideosNo response Platformlatest Tanstack Query adaptervue-query TanStack Query versionlatest TypeScript versionNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There a couple of issues with your code:
|
Beta Was this translation helpful? Give feedback.
Modified your sandbox: https://codesandbox.io/p/devbox/sleepy-satoshi-w2mwpt
Feel free to open the MR to update the docs, as it's definitely a copy of the
react
docs.Basically
Example2
override is missing.