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 trigger data fetch on button click
Call setQueryData() from the backend
Understanding .refetch() and error retry behavior.
Trigger refetch/rerender after setDefaultOptions
should I use getQueryData in this use case?
How to make useMutation non-blocking?
Use React Query hooks to call server actions in Next.js 14 client components?
Handeling multiple dependent states effectively server site and client site
Sample code for a shared public queryClient for SSR
useQuery doesn't reload data after reset from error boundary
error.tsx
in Next.js, and when my useQuery
fails with an error, it falls back to this component. But when I hit reset, internally calling reset()
on the error component, it goes back to the same page and shows the page I render when there's no data.
My page has multiple tabs, and when this happens, even switching tabs shows no data in all of them even though I've passed tab
in the queryKey
. In one of the tabs I have a <select>
, when I change the choice in that, it does reload; and once that gets data, I start getting data everywhere else too. What? why?...How to keep next.js client side and server side states in sync?
Always fetch on the server?
handling loading and error states
"use server" at the top, gives me an error.
Unsure why this is constantly refetching
How to switch between two queries based on condition (type-safe)
{ value: string }
and the bar query returns { value: string; otherProp: string }
....Handling Server Side Validation Requests for Username
Prefetch mutation
POST
I want this metadata available on page load so I can show a timer, and I also want to ensure this email is always sent when the page loads. If there's a better approach to this, feel free to share...Should gcTime refer to the cached entries, or the cache itself
React Query w/ AG Grid