Advanced TanStack Query v5
Implements high-performance data fetching, caching, and optimistic UI updates using TanStack Query v5 best practices.
This skill provides Claude with production-ready patterns for TanStack Query (React Query) v5, enabling the implementation of complex server state management. It includes guidance on cursor-based infinite scrolling, robust optimistic updates with error rollbacks, intelligent prefetching, and advanced cache invalidation strategies. Designed for frontend developers building data-intensive applications, it ensures optimal performance through features like query deduplication, parallel fetching, and seamless React 18 Suspense integration while enforcing strict anti-pattern avoidance.
Características Principales
01Strategic data prefetching for instant page transitions
02Support for parallel, dependent, and suspense-based queries
0369 GitHub stars
04Optimistic UI updates with automatic rollback on failure
05Advanced cache invalidation and query deduplication
06Infinite query implementation with cursor-based pagination
Casos de Uso
01Building social media feeds or product lists with infinite scroll
02Creating highly responsive dashboards that update optimistically
03Optimizing application performance through prefetching and intelligent caching