tanstack-react-query-patterns

Community

Type-safe TanStack Query patterns, reusable.

Authoragusmdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Standardizes and accelerates the implementation of TanStack Query patterns by providing a structured approach to query keys, options factories, and prefetching strategies across SSR and SPA contexts.

Core Features & Use Cases

  • Hierarchical query keys and type-safe keys for consistent cache management.
  • Query options factory to centralize fetch logic and defaults.
  • Prefetching and dependent/parallel queries to improve UX.
  • Pattern examples for infinite, placeholder, select transformations, and optimistic updates.
  • Guidance for integrating with TanStack Start (SSR) and TanStack Router (SPA).

Quick Start

Create a minimal project example applying query keys, the queryOptions factory, and a sample detail/list data fetch to validate patterns.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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-react-query-patterns
Download link: https://github.com/agusmdev/fullstack-ai-template/archive/main.zip#tanstack-react-query-patterns

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 223,000+ vetted skills library on demand.