tanstack-query
CommunityMaster server state with TanStack Query.
Author0r0loo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidance and best practices for managing server state effectively using TanStack Query, ensuring efficient data fetching, caching, and synchronization in your applications.
Core Features & Use Cases
- Server State Management: Guides on using
useQueryanduseMutationfor fetching and updating server data. - Data Conventions: Establishes conventions for
queryKeynaming and thequeryKeyfactory pattern for better organization and invalidation. - Advanced Patterns: Covers Optimistic Updates, Prefetching, and Suspense mode for enhanced user experience.
- Configuration: Recommends optimal
staleTime,gcTime, and otherQueryClientoptions. - Use Case: When implementing a feature that displays a list of users and allows for user creation, this Skill will guide you on how to fetch the user list, handle the creation mutation, and ensure the list is updated correctly afterward, all while optimizing for performance and user experience.
Quick Start
Refer to the TanStack Query Skill for rules on using useQuery with queryKey factories.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tanstack-query Download link: https://github.com/0r0loo/my-claude-code-toolkit/archive/main.zip#tanstack-query Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.