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.
19entries indexed
- 01
Build a bounded cursor Infinite Query
Use one queryKey for the full list, let server cursors drive pageParam, and bound cache and refetch cost with maxPages.
- 02
Build a safe boundary for async field validation
Reject invalid input synchronously, run async validation through built-in debouncing, and separate early feedback from final server validation.
- 03
Configure Query SSR and streaming hydration
Create a QueryClient per SSR request, use the Router integration for dehydration and hydration, and classify blocking versus streaming queries.
- 04
Consume Query AbortSignal
Pass the queryFn signal into the request layer so cancellation stops I/O with explicit cache-revert semantics.
- 05
Contain route loader and render errors
Set a Router-wide default and override errorComponent on routes that need independent recovery.
- 06
Coordinate sorting and pagination for a server-backed table
Let Table own view state and Query own remote data, using manualSorting, manualPagination, and rowCount to avoid processing only the current page.
- 07
Create a file route with a path parameter
Create /posts/$postId in a React app and read the typed postId from the route instance.
- 08
Create a server-only function
Use createServerFn to define a same-origin, type-safe server RPC.
- 09
Create an externally callable Server Route
Build a native HTTP endpoint for third-party callers with explicit status, caching, and safe responses.
- 10
Define a Query freshness contract
Set staleTime from data volatility and decide inactive-cache gcTime independently.
- 11
Establish a Start Middleware chain
Define request and function scopes, compose context through next(), and preserve authentication and CSRF boundaries.
- 12
Establish typed Router Context
Declare dependencies at the root and use beforeLoad to add inferred derived context to a subtree.
- 13
Implement a rollback-safe optimistic update
Cancel conflicting refetches, snapshot cache, write an immutable draft, roll back on failure, and revalidate on settlement.
- 14
Prefetch Query from a route loader
Create a request-scoped QueryClient for SSR and reuse one queryOptions contract in the loader and useSuspenseQuery.
- 15
Protect a route subtree with beforeLoad
Read typed auth context in a pathless layout, stop signed-out users before child loading, and preserve a constrained return URL.
- 16
Protect navigation away from a dirty form
Use useBlocker resolver state for accessible leave confirmation and register beforeunload only while dirty.
- 17
Router loader or Query?
Choose Loader, Query, or both from navigation criticality and data lifecycle needs.
- 18
Update cache from a mutation response
Use setQueryData when the write response contains the complete entity; invalidate when the correct cache cannot be derived.
- 19
Validate pagination and filter search params
Turn untrusted URL search params into stable, typed route input.