react-query-mutative

Community

Smooth optimistic mutations with React Query.

Authorharryy2510
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Efficiently manage optimistic UI updates and data consistency in React applications by providing structured mutative utilities and QueryClient configuration guidance.

Core Features & Use Cases

  • Centralized QueryClient configuration with deterministic behavior (staleTime: Infinity, gcTime: Infinity, refetchOnMount: false, refetchOnWindowFocus: false, retry: false) and toast-based error handling for mutations and queries.
  • Query Key factories to consistently derive keys for domains and queries.
  • Mutative helpers for optimistic updates, add/remove, and safe rollback semantics in mutations.
  • Clear guidance on invalidateQueries vs refetchQueries and when to use each.
  • Scalable API module pattern across domains.

Quick Start

Use mutative helpers to apply optimistic updates during a mutation and automatically rollback on error.

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: react-query-mutative
Download link: https://github.com/harryy2510/dotclaude/archive/main.zip#react-query-mutative

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