react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Usage from within a Vue plugin
Refecth using cache instead execute queryFn
Is there a working example of how to properly use in Nuxt/SSR?
Getting `Hydration node mismatch` in nuxt 3
vue-query
as a nuxt plugin as explained in the docs, but now I always seem to get a hydration error.
Is this a bug? Is there a working example somewhere?...useQuery is rerunning when route query / param change ?
queryKey
with Vue 3.3 toRef
(toRef(() => route.query.userId)
).
I wrap like...
```...Query on user action while respecting cache
enable: false
and the refetch()
method, but, unless I'm mistaken, this method ignore the cache and the request is fired every time. Is there a way to make it work ?...Vue Query Reactive SWR
how to filter data while maintaining minimum results per page?
Default Mutation Fn ?
useQuery Fetching twice?!

How to assign useQuery's "data" to a Pinia composition store Ref?

How to utilize useQuery to update multiple variables?
Query Key Array not Updating with key is changed
useQuery
is using old query data instead of fetching new data for the selected warehouse ID. I'm not sure how to update the query key array when the selected warehouse ID changes, and I was wondering if you could provide any guidance on how to resolve this issue? Thank you!
I've attached a video to this message that explains the issue in more detail.
```js...Nuxt 3 persistent cache
cancelQueries Promise doesn't resolve in Cypress/Storybook
queryClient.cancelQueries({ queryKey: [myQueryKey] })
.
Running the app locally with a real backend behaves as expected.
However in both Cypress tests and in Storybook (both with HTTP requests mocked), the onMutate
function gets stuck on cancelQueries
, because the Promise never resolves....I cannot install vue-query with Vue.use using @vue/compat
life cycle timing problem with useQuery
config
data via an ajax request. This config contains things like BASE_URL, STALE_TIME and other constants.
When I initialize my useQuery, I need these constants to set up the request. Here's a code snippet to help understanding the problem:
`const store = useStore();...Is it possible to simple pass in props to the query key?
Memory leak in SSR
Infinity
during SSR. Queries are fetched using suspense
.
I noticed that my app leaked memory on every request so I analyzed some heap dumps and found that there are many Vue Query instances that cannot be garbage collected because there are active subscription listeners (set by Vue Query, not by me).
As a workaround, I do client.unmount()
at the end of a request which removes those.
Is this a bug or due to wrong usage?...How to use `useQuery` on route change?
onBeforeRouteUpdate
hook in the setup function but it gives me an error saying Error: vue-query hooks can only be used inside setup() function.
. Is there a suggested way to achieve the same functionality? Should I watch the route
object instead?