tanstack-query-mutations-and-sync
TanStack Query Mutations and Sync
Use this skill when the task is about writing server state, reconciling cache after writes, or keeping that state resilient across offline and multi-tab flows.
Scope
useMutationand write-side lifecycle callbacks- optimistic updates, rollback, and cache reconciliation
- invalidation from mutations and response-driven cache writes
- mutation defaults, retry behavior, and mutation scopes
- offline and paused mutations
- persisted cache, storage persisters, broadcast sync, and devtools
Routing cues
useMutation, optimistic UI, rollback, invalidate after save, or mutation race concerns -> this skill- basic query reads, pagination, invalidation without writes, or cache defaults ->
tanstack-query-fetching-and-cache - SSR, hydration, Next.js integration, or server prefetching ->
tanstack-query-integration-and-rendering - TypeScript helper factories, key registration, tests, or ESLint rules ->
tanstack-query-typescript-and-tooling
More from dobroslavradosavljevic/skills
base-ui-typescript-surface
Use for Base UI namespace contracts, change event types, generic render types, and wrapper typing patterns.
4base-ui-basic-primitives
Use for simple primitives with low integration complexity (Avatar, Button, Meter, Progress, Scroll Area, Separator).
4base-ui-root-providers
Use for CSP Provider, Direction Provider, and useDirection when wiring Base UI at the app root or across portals.
4base-ui-menus-navigation-and-toast
Use for Menu, Context Menu, Menubar, Navigation Menu, Toolbar, Toast, and shared command-surface patterns such as detached triggers and menu payloads.
4base-ui-forms-and-validation
Use for Base UI Field/Form primitives, validation flows, form controls, and advanced Number Field, Slider, and RadioGroup behavior.
4base-ui-disclosure-and-tabs
Use for stateful visibility components (Accordion, Collapsible) and tab navigation semantics.
4