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
How to properly type data in useMutation?
Pagination with only one query key
Updating react query cache frequently without spamming my backend
l Query Revalidation Completes After Mutation
Enabled condition
Query tree data structure with parent-children loading
Using react query cache enough for my use case, or do I need to include a state management lib?
Convert api data to client state waiting for a save action
How to access cached data from React Query in a different component?
Long waiting time for queryFn to run
Attempted to invoke queryFn when set to skipToken. This is likely a configuration error
Tips for debugging over-fetching of data / duplication of http requests?
ensureQueryData()
is re-run despite having just fetched and returned valid data only a few ticks prior. this results in 2 http requests to the same endpoint with the same parameters returning the same data. as far as i can tell, this is NOT due to react's strict mode mechanism as i see it in production
as well.
i've been manually inspecting the cache with queryClient.getQueryCache().getAll()
but from that perspective, everything should be working as expected (iow, i didn't see any mislabeled cache items or duplicate entries). ...Trying to disable caching (with gcTime & staleTime) does not seem to work

Best practices for state management and fetching data
Tanstack Router loader integration question
Get all query cache ?
Pass initial data in a server component
QueryClientProvider
and passes just fetched level - lets say bronze
to the provider
3. Client component somewhere else uses hook useVipLevel
which should never be loading
because there should be initial data passed on the first user enter even before client components render...Completely disable cache between two pages.
gcTime
(cacheTime
before v5) to 0
.
But I want to disable a cache completely, When components mount and unmount, the query should refetch. I also set staleTime
to 0
but it's sitll no working. Any suggestions?...