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 treat the data before passing the data?
Difference between tanstack and react query npm package
Only fetch data once if component is open - after close and reopen fetch again
Type data correctly when using InfiniteQuery and select-Function.
select: (data)=>data.pages.reduce((acc, page) => [...acc, ...page.rows], []);
If I pass my type as TData. I would expect that query.data is TData[].
Instead it is {pages: TData[], pageParams: unknown[]}...Authentication
useQuery with arguments?
const { isLoading, isError, data, error } = useQuery('todos', fetchTodoList)
const { isLoading, isError, data, error } = useQuery('todos', fetchTodoList)
Should you avoid nesting QueryClient?
QueryClientProvider at the app's root level which would create nested clients. Is this something to avoid? I assume calls like queryClient.invalidateQueries will be limited to their closest provider, but I could see this being confusing in a large codebase.react-query offline mode
Make invalidateQueries not instant refetch but wait for next mount
Is it not possible to use useQuery in the root component of Nextjs app?
No QueryClient set, use QueryClientProvider to set one. However I have already set the QueryClientProvider and everything works well if I shift the use of useQuery to any other component other than root component. It seems like something is not ready yet before I set the QueryClientProvider. Can someone please help to understand that part?How to refetch data in useInfiniteQuery() - react query?
useInfiniteQuery for pagination stuff, So I have a case where I can edit Item info and then re-fetch the list again to get the updated list of items,
current behavior:
using queryClient.refetchQueries
...Invalidate query happening too fast
How do I get rid of react-query dev tool html element? Its breaking my html page.

react-query v4 async storage persister cache time
Throwing error not resulting in react-query capturing 'error' state
React-table visibility columns on select on a custom component does not update the parent component
<ColumnsSelect allLeafColumns={...table.getAllLeafColumns()} />
<ColumnsSelect allLeafColumns={...table.getAllLeafColumns()} />
AbortSignal for useQueries
useQuery a context is passed to the queryFn which provide an abort signal that can be consumed by eg. axios.
When using useQueries (plural) the context is not passed to the queryFn. Is there a way to send the abort signal to all the requests made by useQueries ?...Throttling-Debouncing
useQuery. I have some ideas, but feel like it can turn into a monstrosityFetch data only when first call was successful