TanStack Query Documentation
TanStack Query (React Query) is a server-state management library for React, Preact, Vue, Solid, Svelte, Angular, and Lit. It handles fetching, caching, synchronizing, and updating server data.
Quick Reference
| Task | Entry Point |
|------|-------------|
| React quick start | contents/framework/react/quick-start.md |
| Vue quick start | contents/framework/vue/quick-start.md |
| Angular quick start | contents/framework/angular/quick-start.md |
| Queries guide | contents/framework/react/guides/queries.md |
| Mutations guide | contents/framework/react/guides/mutations.md |
| SSR / Next.js | contents/framework/react/guides/ssr.md |
| API functions (React) | contents/framework/react/reference/functions/ |
| ESLint plugin | contents/eslint/eslint-plugin-query.md |
When to use
Use this skill when the user asks about:
- Fetching, caching, and synchronizing server data
- useQuery, useMutation, useInfiniteQuery hooks
- React Query, Vue Query, Angular Query, Solid Query, Svelte Query
- QueryClient configuration, cache invalidation, stale time, refetching
- Hydration, SSR, devtools, persistence plugins, and the ESLint plugin
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.