tanstack-integration
Installation
SKILL.md
TanStack Integration
Use this skill to apply current, source-backed TanStack guidance. Keep answers aligned with installed package source first, official TanStack docs second, and package-shipped skills third. Read references/current-authority.md when APIs, versions, CLI commands, or source freshness materially affect the task.
Decision Tree
- Need Start + Router + Query SSR? Use a fresh per-request QueryClient, router context, and
setupRouterSsrQueryIntegration. - Need loader data in components? Use
ensureQueryDatain loader anduseSuspenseQueryin component. - Need Convex live data? Let Convex own live subscriptions; use Query only through deliberate adapter/query ownership.
- Need auth? Use Router guards for UX and Start/Convex/server boundaries for private data.