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
Correct approach for TanStack Router Infinite Data
CancelledError from queryClient.cancelQueries: something to act on or ignore?

Query Keys for Infinite Queries
useInfiniteQuery for a really big list of posts, and I want to update a single post with queryClient.setQueryData. I thought I could do this with setQueryData(["posts", post.id], ...) but that's when I thought that the infinite query placed items as a separate query key. Can I make it do this, or would I have to do some weird stuff like send down just post IDs from the GET /posts endpoint and for each <Post /> have it's own useQuery({ queryKey: ["posts", post.id] }) bu...State management for animating a list of fetched items
myQuery.data, how can I access the previous data before this latest fetch to see which items got removed so I can still display them for a moment and add CSS to add a "removed" animation? (E.g. fade out, slide out etc.)...Suspense Query No Enabled Flag
Query Cancellation
Prefetch query with parameters
page.tsx that calls a function.
```ts
await queryClient.prefetchQuery({
queryKey: ['posts'],...Understanding Tanstack Query as state
How to fetch data on-demand in TanStack Query based on dynamic parameters (e.g. name from a list)
enabled: false and specific parameters. So my question is: How can I trigger a query with a specific parameter (e.g. a name) only on button click, without pre-initializing it?
If this isn’t possible directly with TanStack Query, what would be the best practice to handle this type of use case?...Continuous re-fetching of data with changes to existing items
Query cache persist when navigating with Tanstack navigation?
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
UseSuspenseQueryOptions data type infer question
useQuery result is 'any'
[solved] useQuery ignores `retry: false` when `refetchInterval` is set
Struggling to build a PWA with react-query
PersistQueryClientProvider with localStorage. I have this specific use case where I have refetchOnWindowFocus enabled, which provides a better overal UX imo. The issue is that when a user is on another application, looses his network connection somehow, then returns to my PWA, the queries will be executed (be cause of refetchOnWindowFocus) and ultimately fail which will then delete the cached data in local storage, why does this happen? Btw im not using the offlineFirst network mode (just using the default one) because that would require me to cache the API data in my service worker (which I might consider now because of all the issues I have building an offline experience).
Tips are welcome! 🙏...Help figuring out why queryFn is firing with stale params
Is it considered bad practice to use a GET request with useMutation?
Error while using Expo: No QueryClient set, use QueryClientProvider to set one
Customizing error messages in global onError callback.
Successfully created [name_of_thing] where [name_of_thing] comes from the mutation response. In the case of an error, [name_of_thing] may need to come from local state if the network request fails. I can't use the meta option because the data isn't static. I thought a...Reconcile server data, local state, session storage.