Replies: 4 comments 13 replies
-
Agreed. Btw, is there a workaround for that now? |
Beta Was this translation helpful? Give feedback.
-
You can call vue-query from anywhere, but then you must pass |
Beta Was this translation helpful? Give feedback.
-
Pardon I didn't notice this discussion, and i open a PR(#5703) to resolve this issue. Instead of removing the error message reminding the user that it should be used in |
Beta Was this translation helpful? Give feedback.
-
there are some demos for useQuery + effectScope? |
Beta Was this translation helpful? Give feedback.
-
Vue 3.3 introduced the way of getting
inject
outside components: https://vuejs.org/api/application.html#app-runwithcontextCould it be possible to call
useQuery
and other composables just insiderunWithContext
?It could be really useful in router guards and other such places.
Beta Was this translation helpful? Give feedback.
All reactions