What problem does it solve?
This Skill helps developers understand and implement best practices for TanStack Query (formerly React Query) within the Bookkeep codebase, ensuring efficient data fetching, caching, and state management.
Core Features & Use Cases
- Query Key Conventions: Learn how to structure query keys for optimal caching and invalidation.
- Query & Mutation Patterns: Explore practical examples of configuring queries for different data types and implementing mutations.
- Cache Invalidation Strategies: Understand how to effectively manage cache updates to keep your UI in sync with your data.
- Error Handling & Workflows: Discover patterns for robust error handling and common data fetching workflows.
- Use Case: A developer needs to implement a new feature that fetches user data. They can consult this Skill to learn the correct way to define the query key, set
staleTime, and handle potential errors, ensuring the feature is performant and maintainable.
Quick Start
Use the tanstack-query skill to learn about query key conventions for caching data.