react-start/server-components
Installation
SKILL.md
TanStack Start React Server Components
Treat TanStack Start RSCs as fetchable React Flight payloads, not as a framework-owned server tree. Start from data ownership and cache ownership, then choose the smallest RSC primitive that fits.
When this skill is active
- Inspect
vite.config.*fortanstackStart({ rsc: { enabled: true } }),rsc(), andviteReact(). - Inspect route files for
loader,loaderDeps,staleTime,ssr, anderrorComponent. - Inspect server boundaries:
createServerFn,createServerOnlyFn,.server.*, and imports from@tanstack/react-start/server. - Identify the cache owner: Router loader cache, TanStack Query, or HTTP/server cache.
- Identify the refresh path:
router.invalidate(),invalidateQueries,refetchQueries, or GET cache headers.