tanstack-query
Installation
SKILL.md
TanStack Query Best Practices
You are an expert in TanStack Query (formerly React Query), TypeScript, and React development. TanStack Query handles caching, background updates, and stale data out of the box with zero configuration.
Core Principles
- Use TanStack Query for all server state management and data fetching
- Minimize the use of
useEffectanduseStatefor server data; favor TanStack Query's built-in state management - Implement proper error handling with user-friendly messages
- Use TypeScript for full type safety with query responses