frontend-query-hook

Community

Streamline frontend development with TanStack Query best practices.

Authorjzallen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers create and modify TanStack Query hooks, mutations, and tests in the frontend, ensuring adherence to best practices for efficiency and maintainability.

Core Features & Use Cases

  • Query Key Management: Offers factory patterns for query keys, ensuring scalability and consistency.
  • Query Hook Usage: Provides guidelines for using query hooks effectively, including stale times and optimistic updates.
  • Mutation Patterns: Demonstrates a pattern for mutations with optimistic updates, including error handling and rollback.
  • Path Aliases: Simplifies module imports by providing path aliases.
  • Testing Hooks: Offers guidance on testing Query hooks, including setting up a QueryClient for each test.

Quick Start

To get started, run the 'useMyThing' hook to fetch data for a specific thing using its ID.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: frontend-query-hook
Download link: https://github.com/jzallen/dashboard-chat/archive/main.zip#frontend-query-hook

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.