Agent documentation
Retrieve the smallest correct context for the task.
No long-form tutorials written for people. Every document declares its task, packages, versions, constraints, minimal implementation, and validation path.
Agent entrypoint
GET /en/llms.txt- 01Fetch llms.txt
- 02Select a product
- 03Retrieve one task document
- 04Check versionRange
Available knowledge units
Each unit has an HTML reader and a raw Markdown representation.
01
TanStack Start
Full-stack application framework
recipeCreate a server-only functionUse createServerFn to define a same-origin, type-safe server RPC.^1recipeCreate an externally callable Server RouteBuild a native HTTP endpoint for third-party callers with explicit status, caching, and safe responses.Start ^1 / Router ^1contractEstablish a Start Middleware chainDefine request and function scopes, compose context through next(), and preserve authentication and CSRF boundaries.^1
02
TanStack Router
Type-safe routing and URL state
recipeCreate a file route with a path parameterCreate /posts/$postId in a React app and read the typed postId from the route instance.^1recipeValidate pagination and filter search paramsTurn untrusted URL search params into stable, typed route input.^1errorContain route loader and render errorsSet a Router-wide default and override errorComponent on routes that need independent recovery.^1contractEstablish typed Router ContextDeclare dependencies at the root and use beforeLoad to add inferred derived context to a subtree.^1recipeProtect navigation away from a dirty formUse useBlocker resolver state for accessible leave confirmation and register beforeunload only while dirty.^1recipeProtect a route subtree with beforeLoadRead typed auth context in a pathless layout, stop signed-out users before child loading, and preserve a constrained return URL.^1
03
TanStack Query
Server state and async data
decisionRouter loader or Query?Choose Loader, Query, or both from navigation criticality and data lifecycle needs.Query ^5 / Router ^1recipePrefetch Query from a route loaderCreate a request-scoped QueryClient for SSR and reuse one queryOptions contract in the loader and useSuspenseQuery.Query ^5 / Router ^1recipeUpdate cache from a mutation responseUse setQueryData when the write response contains the complete entity; invalidate when the correct cache cannot be derived.^5contractDefine a Query freshness contractSet staleTime from data volatility and decide inactive-cache gcTime independently.^5contractConsume Query AbortSignalPass the queryFn signal into the request layer so cancellation stops I/O with explicit cache-revert semantics.^5recipeBuild a bounded cursor Infinite QueryUse one queryKey for the full list, let server cursors drive pageParam, and bound cache and refetch cost with maxPages.^5contractConfigure Query SSR and streaming hydrationCreate a QueryClient per SSR request, use the Router integration for dehydration and hydration, and classify blocking versus streaming queries.Query ^5 / Router ^1recipeImplement a rollback-safe optimistic updateCancel conflicting refetches, snapshot cache, write an immutable draft, roll back on failure, and revalidate on settlement.^5
04
TanStack Table
Headless table and data-grid logic
05
TanStack Form
Type-safe form state and validation