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
What's different with HTTP Cache and React Query ?
Next.js 13.4 app directory prefetch/hydrate questions
useQuery to populate dropdown
select parameter that I can use to perform actions when I fetch the data (but using that I cannot return data anymore, or at least I can, but if I use the select parameter to modify a global status, then I return the data from the select function, it will cause an infinite loop, as the same as modifying a global state using the returned {data} value).
My problem is: from what I understood the best-practice is to use the {data} returned from useQuery to populate my dropdown, but this dropdown is associated with a Zustand global state that keeps track of the currently-selected element. If I initialize my global state with undefined everything goes well, but I want to initialize my global state with one selected item right after fetching the items.
My solution would be to use the select parameter to set 2 global states: one for saving the list of elements fetched and one for saving the selected item, but this could create problems when the query is re-fetched.
...Children route loader not works with react-query
Conditional mutationFn in useMutation
NextJs working
Queries run non-stop
useQuery would keep executing in an infinite loop. Any help is appreciated....Mutation stuck at loading
loading . However, if I add the onSettled callback, data is defined so I don't understand what's wrong.
Here is a simplified version of my code, thanks in advance for the help!...Image URL cached

React query mutations
Return multiple queries on react router loader
reset error boundary if query succeeded
Try Again on one of the queries, only that boundry is reset if the query is sucessful. The rest of the components are still rendering the fallback.
Is there anyway to have all the error boundaries reset?...Change the react router example on github TanStack/query
But I don't understand some logic on how it works and I would like to ask for an opinion. Since the router loader is for accessing the data we fetch from the db, why fetch them outside the loader with ...
Can I really use useQueryClient outside a component in a normal regular function?
Client only filters in infinityQueries
<video> tag flashes when using react query
How to handle updates through websocket?
onSuccess mutation fires another mutation
how to make 100 sequential queries