Start with the right question. Land on the right page.
One search covers the learning path and agent references. Titles, body copy, task keys, packages, and version metadata all participate.
7entries indexed
- 01
Define when data is fresh
Separate staleTime from gcTime and co-locate keys, fetchers, and time policy in shared queryOptions.
- 02
Isolate and stream Query state across SSR
Use the Router SSR Query integration for dehydration, hydration, and streaming while creating an isolated cache per server request.
- 03
Keep infinite lists bounded and recoverable
Define pagination with initialPageParam, cursors, and maxPages while preserving the pages and pageParams structure.
- 04
Let the loader warm the Query cache
Router decides when navigation happens while Query owns the cache. Connect them with one shared queryOptions object.
- 05
Make optimistic updates safe to roll back
Choose UI-only pending output or a cache-level update, then handle failure and concurrency with cancellation, snapshots, rollback, and revalidation.
- 06
Propagate Query cancellation to the network
Consume the AbortSignal supplied to queryFn so obsolete fetches stop and cancellation state remains predictable.
- 07
Write back from a Server Function
Validate input at the network boundary, model write state with a mutation, then immutably update Query cache from the server response.