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
What is the right way to do on click SSE query that feeds multiple components
Invalidate / clear mutation after success?
meta fields into mutation and adjust styles based on the active mutation state, but need this to be cleared after success. So what is the approach to invalidate/clear mutation back to an empty state?Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null...
queryFn:()=> getTodos() in the clinet component
But gives an error if queryFn: getTodos...What is 'request' mean in document?
This ensures that data is not shared between different users and requests ,
I'm confusing the meaning of word 'request' between api request to server and react client of which single user using.
or any other meaning of request here? I'm noob to this library plz help!...How can I reset query cache without refetching it?
Stop refetch on page change
refetchOn* prop with false to the hook but it doesn't work. Here is SS of the related code:
PS: the useUser hook is used in most of my components, including the ones used on the SS, if that changes anything :x...
Refetch a query with new variables but keep data from previous results as well
Issue with data persisting
What's the best practice to refetch data on select change that triggers a mutate
currentActionName doesn't get updated in time for actionData to be updated/refetched so that updateBigData.mutate can be invoked with the fresh data (actionData belonging to newActionName)
Here's an abbreviated version of my code:...Prefetch query with nextjs app router
useGetUser for auth, but pending state/data doesnt reset
useInfiniteQuery with more than 1 param
What's a nice code pattern to revalidatePath on each query?
Using queryClient.fetchQuery in the loader of a TanStack route does not activate the query.
_layout route, I do the following to fetch data. Then I access this data through useLoaderData hook. This all works great.
However, when I check the query in the devTools, I see that it appears as inactive. I use the devTools especially to test the loading and error states, but this does not work for an inactive query.
Is there a way to activate it when using queryClient.fetchQuery and also be able to trigger the pendingComponent when I manually do Trigger Loading in the devTools?
...
Is updating mutation state a good idea?
How to disable retries when network request is cancelled?

setQueriesData doesn't match query
queryClient and useQuery data is not the same(same query key)?
setQueryData and noticed that it wasn't being updated correctly.
Then i tried to log the same data from queryclient and usequery and it turns out that there is a mismatch.
```...using return value of useQuery as a queryKey
Tanstack query + React hook form