Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Sets up TanStack Query v5 in React apps and fixes data fetching, caching, mutation and v4-to-v5 migration errors. Covers useQuery, useMutation, optimistic updates and infinite queries.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
react-query, data-fetching, server-state, caching, v5-migration, mutations, tanstack, query ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Status: ✅ Production Ready Last Updated: 2025-12-09 Production Tested: Patterns verified with TypeScript strict mode
Claude Code automatically discovers this skill when you mention:
Provides comprehensive knowledge for TanStack Query v5 (React Query) server state management in React applications, including setup, queries, mutations, caching strategies, v4→v5 migration, optimistic updates, infinite queries, and error handling.
✅ QueryClient configuration and setup ✅ useQuery, useMutation, useInfiniteQuery patterns ✅ Optimistic updates and cache management ✅ v4 to v5 migration (all breaking changes) ✅ TypeScript patterns and type safety ✅ Error handling strategies ✅ Caching and refetching strategies ✅ DevTools setup and debugging ✅ Testing patterns with MSW
| Issue | Why It Happens | Source | How Skill Fixes It |
|---|---|---|---|
| #1: Object Syntax Required | v5 removed function overloads | Migration Guide | Always use useQuery({ queryKey, queryFn }) |
| #2: Query Callbacks Removed | onSuccess/onError removed from queries | v5 Breaking Changes | Use useEffect or move to mutations |
| #3: Status Renamed | loading → pending | v5 Migration | Use isPending for initial load |
| #4: cacheTime → gcTime | Renamed for clarity | v5 Migration | Use gcTime instead |
| #5: useSuspenseQuery + enabled | enabled option not available | GitHub #6206 | Use conditional rendering |
| #6: initialPageParam Required | v5 requires explicit value | v5 Migration | Always provide initialPageParam |
| #7: keepPreviousData Removed | Replaced with placeholderData | v5 Migration | Use placeholderData: keepPreviousData |
| #8: Error Type Default | Changed from unknown to Error | v5 Migration | Specify error type if non-Error |
# Install dependencies (choose one)
pnpm add @tanstack/react-query@latest @tanstack/react-query-devtools@latest
# or
npm install @tanstack/react-query@latest @tanstack/react-query-devtools@latest
# or
bun add @tanstack/react-query@latest @tanstack/react-query-devtools@latest
# Set up QueryClient Provider (see SKILL.md for complete setup)
Result: Full TanStack Query v5 setup with best practices
Full instructions: See SKILL.md
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin tanstack-queryPlugins from other owners that cover similar ground