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
Is array in query key array compared by value or reference? useQuery, v3
QueryClient refetch on store value change
queryClient.resetQueries(), it refetches the old data.
Not sure why blurring/refocusing the browser works but manually resetting the queries does not.
...Next.js 13, SSR & two queries while using hydration
public investments on server and client. Fromy my understanding, having the config like have (listed below), should perform everything on server side using SSR, without call on client. Any idea how to fix it?
```import axios from "axios";...
Persistence, cacheTime and garbage collector
persistQueryClient plugin and I set up default cacheTime on queryClient to Infinity, as described here in the docs:
https://tanstack.com/query/latest/docs/react/plugins/persistQueryClient#how-it-works
So garbage collection is basically disabled for all queries by default which is what I expect most of the time.
However, there are queries which I would like to remove from the cache right after they become inactive. Here is a snippet using some example data:...New use case pagination
useMutation is returning success on fetch error using Fetch API
409 conflict but, useMutation is not returning an error!
It is returning success instead with the error data inside the body the following
```ts
{
"data": {...Disable query on windows click
Accessing previously paginated data within react query
using react query in a standalone hook
No QueryClient set, use QueryClientProvider to set one . But the thing is, I'm in a standalone hook. The original create react app does have a query client provider that is set to surround everything inside the app component. I call the hook inside the top level of the app component. Any help would be much appreciated!v5 placeholderData doesn't work with select option
keepPreviousData: true to preserve the previous data while new data is being fetched. Example here -> https://codesandbox.io/s/goofy-brook-q0lvjj?file=/src/App.js
Now in v5, we're retiring keepPreviousData and using placeholderData to also keep previous data. But this doesn't quite the same way as v4 ...Keep request running
Solid JS queryclient not available.
tan stack query. I created my client, and my provider, wrapping my application, but when I tried to call any part of the library (useMutation, useQueryClient) I would get an error that the client isn't set. I double checked my work that the client passed as a prop to the provider is indeed not null: still nothing. Really not sure what Im doing wrong. I spun up a clone of the project using standard react and the exact same struct...Do you see an error with this mutation/query code?
When does onError callback fire?
Increase timeout
The timeout for this transaction was 5000 ms, however 6930 ms passed since the start of the transaction. Consider increasing the interactive transaction timeout or doing less work in the transaction., I'm using TRPC and React Query, how I can increase this timeout?How to use react query properly with zod and typescript, and also using the query factory style.
refetchInterval and active queries when not on tab
refetchInterval of 1 minute to request the photo. THis all works well unless the user is not on the tab. Question, is this expected browser behavior as you aren;'t actually active on the tab anymore?onError not triggering
onError: () => deleteFirstThing.mutateAsync(_data.id) isn't triggering. I know the call works. createThing.mutateAsync part returns a 403 atm. Any thoughts?
```...InfiniteQueries page refresh