state-tanstack

Installation
SKILL.md

State Management Skill

Patterns for managing state in React applications using Tanstack Query (server state) and Zustand (client/UI state).

When to Use This Skill

  • Setting up data fetching in a new project
  • Implementing mutations with optimistic updates
  • Managing UI state (modals, filters, preferences)
  • Organizing Zustand stores
  • Integrating Tanstack Query with Zustand

Core Principle: Separation of Concerns

Library Purpose Examples
Tanstack Query Server state API data, cached responses, background refetching
Zustand Client state UI state, drafts, local preferences, temporary data
Installs
24
GitHub Stars
10
First Seen
Mar 8, 2026