TanStack Query v5 (React Query) reference for data fetching, caching, and server state management in React. Use when: (1) writing useQuery, useMutation, or useInfiniteQuery hooks, (2) setting up QueryClient and queryOptions, (3) implementing optimistic updates or cache invalidation, (4) configuring SSR/hydration with Next.js App Router or Pages Router, (5) testing React Query hooks, (6) working with TypeScript types, Suspense, or advanced patterns like dependent queries and infinite scroll.
$npx -y skills add jgamaraalv/ts-dev-kit --skill tanstack-queryInstalls into the current project.
Run `npx skills use "https://github.com/jgamaraalv/ts-dev-kit" --skill "jgamaraalv/ts-dev-kit/tanstack-query"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/jgamaraalv/ts-dev-kit" that are relevant to the current task. Run `npx skills add "https://github.com/jgamaraalv/ts-dev-kit"` and select the relevant skills, then follow their instructions.