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
Tracked properties mutation
useQuery
? Lets assume I am not using isPending from my useMutation, it seems like my component keeps rerendering?Invalidating queryKey with variable doesn't work
5.84.1
):
...Fragment masking with GraphQL code-gen does not work.
invalidating the first key doesn't work
["user"]
doesn't invalidate ["user", "some-username", "posts"]
? i'm sure that i'm using correctqueryClient
as well
// useQuery
const threadsQuery = useInfiniteQuery(userThreadsInfiniteOptions(username));
// useQuery
const threadsQuery = useInfiniteQuery(userThreadsInfiniteOptions(username));
Hiring a full stack developer
Upgrading to v5.59 causes crashes on sandboxed environment
Cache update
How to handle Errors in catch?
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