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
Webpack issue upgrading React Query from v4 to v5
@tanstack/react-query and @tanstack/react-query-devtools, Webpack (v4) fails to build my application.
```
frontend-1 | ERROR in ../node_modules/@tanstack/query-devtools/build/index.js 5:2
frontend-1 | Module parse failed: Unexpected character '#' (5:2)...How to work with prefetch query in NextJS app router?
How to avoid re-fetching query after resource is deleted
["items"]) and has one items selected that shows more details (query ["items", id]) and the selected id is stored in the URL as search param.
Now the user deletes the currently selected item which triggers a mutation in a child component.
1. The mutation hook then invalidates ["items"] in the onSuccess callback.
2. The child component uses the separate onSuccess callback of the mutate function to let the parent know that the resource was deleted....What is the basic response model required by useInfiniteQuery
How to update component B when the useQuery within component A finishes successfully?
useQuery, on successful completion I would like this data to also show up inside component B. Note that component B is not a child or sibling component, it live in another place, being show in a sidebar. I am not sure how I should do this.
In the past the onSuccess callback could be used to maybe persist in a state manager and share the data in such a way. I could do the same using a useEffect but I just want to check before I act 😉 Thx in advance.
It's important for component B to change whenever the data changes....Using typescript - How do I set a custom type for useMutation?

Best way to catch/handle errors during streaming
A query that was dehydrated as pending ended up rejecting. but I am unable to try/catch it and unsure of the best way to handle these errors.
snippet/example of what I am doing:
```ts
......How can I call an unknown amount of useMutations or set MutationKey in mutateFn?
mutationKey for each item so I track the loading status in another component. Correct me if I'm wrong, after reading the docs and some research.
- there is no useMutations like useQueries which would allow me to create the useMutationObject and pass in the key for each useMutationObject
- I cannot set the mutationKey in themutationFn
Thank You! Unfortunately im on v4 for now ...getQueryData returning undefined unless exact key match
Needs to clear cache in dev (stuck fetching), but works in prod

useQueries and memoization
Pages is undefined when I enter the page through a link, <Link> tag or react-router-dom's navigate()
How can I access to an invalidated query
useQueries & queryOptions typing issue
Prevent react query from creating empty keys even happening when enabled is not satisfied
Will calling mutate trigger Window Focus?
Some piece of code is setting the wrong value in the cache, and I can't figure out which one it is
setQueryData on a key. While I could go over one by one, comment them out, then comment them back in, is there a way to kind of get in between and print the stacktrace of all setQueryData calls, and which value it is setting the cache entry to?Using react/query for non-async/global store.
can you force clear the cache of specific queries?