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
Error Handling with React Query
new QueryClient throws error on NextJS with dynamicIO enabled.
dynamicIO enabled I get the following error when trying to create a query client.
``
Error: Route "/" used Date.now() instead of using performance or without explicitly calling await connection()` beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time
at io (node_modules/next/src/server/node-environment-extensions/utils.tsx:33:31)...How to pass timeout option to useQuery using fetch from context signal in the below code.
const query = useQuery({queryKey: [key], queryFn: ({signal}) => fetch(url, {signal})})
const query = useQuery({queryKey: [key], queryFn: ({signal}) => fetch(url, {signal})})
Throw only specific errors
Issue in understanding one of the examples in tanstack/query (playground example)
useEffect not triggered when data change
Re-render 1 component but not another via the same queryKey?
select to subscribe to a sub-set of data, i.e I am assuming that when another component invokes invalidateQueries for the same queryKey, it shouldn't re-render the other component if the select returns a sub-set of data that did not change?Sporadic network errors
useQueries({ combine: ... }) vs useMemo
combine in useQueries vs taking all the query results and passing into useMemo to "reduce" results down?
Seems like since we lose the nuance of each query in combine, we'd get the ~same effect with a useMemo...Is it possible to set default queryKey for all queries?
queryKey that applies to all queries? In my project, I send the user's language with most queries to receive translations based on it. I want to refetch the query whenever the user changes the app language.
Of course, I could add the language as a queryKey for each individual query, but is there a way to set this as a default for all queries?...How to properly filter data in tanstack table?
Persisting mutations for offline
How matchQuery work ?
onSuccess, onError, onSettled all calling after mutation...
Refreshing Data After Deleting with useQuery Cache
Schedule an invalidation of a query
Pattern for mutations that trigger queries and further mutations
Webpack issue upgrading React Query from v4 to v5
@tanstack/react-query and @tanstack/react-query-devtools, Webpack (v4) fails to build my application.
```
frontend-1 | ERROR in ../node_modules/@tanstack/query-devtools/build/index.js 5:2
frontend-1 | Module parse failed: Unexpected character '#' (5:2)...How to work with prefetch query in NextJS app router?