Agent skill · software engineering · aiskillstore
pitfalls-tanstack-query
TanStack Query v5 patterns and common pitfalls. Use when implementing data fetching, cache invalidation, or debugging stale data issues. Triggers on: useQuery, useMutation, queryKey, invalidate, TanStack, React Query.
Why this skill is useful
Provides specific patterns and anti-patterns for TanStack Query v5 that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
TanStack Query v5 Pitfalls Common pitfalls and correct patterns for TanStack Query v5. When to Use Implementing data fetching with useQuery Setting up mutations with useMutation Debugging stale data or cache issues Reviewing code that uses TanStack Query Migrating from v4 to v5 Workflow Step 1: Check Query Keys Verify query keys use full URL paths for proper deduplication. Step 2: Verify Invalidation Ensure mutations invalidate relevant queries on success. Step 3: Check v5 Patterns Verify v5-specific patterns (isPending vs isLoading). --- Correct Usage Anti-Patterns Optimistic Updates Quick Checklist [ ] QueryKeys use full URL paths [ ] Mutations invalidate relevant queries [ ] Using isPending (not isLoading) for mutations in v5 [ ] Responses typed with schema types
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/pitfalls-tanstack-query