tanstack-query
Server state management for React with TanStack Query v5, covering data fetching, mutations, infinite queries, and offline support.
- Requires object syntax for all hooks (
useQuery({ queryKey, queryFn })) and array query keys; v4 function overloads are removed - Includes
useMutationStatefor cross-component mutation tracking, simplified optimistic updates viavariables, andthrowOnErrorfor error boundaries - Supports offline-first patterns via
networkMode('online', 'always', 'offlineFirst') and PWA scenarios withfetchStatusdetection - Provides
infiniteQueryOptionsfactory andmaxPagesfor memory-efficient pagination;initialPageParamis now required - Prevents 16+ migration errors: renamed options (
gcTimereplacescacheTime,isPendingreplacesisLoading), removed query callbacks (useuseEffectinstead), and SSR/hydration race conditions with streaming components
TanStack Query (React Query) v5
Last Updated: 2026-01-20 Versions: @tanstack/react-query@5.90.19, @tanstack/react-query-devtools@5.91.2 Requires: React 18.0+ (useSyncExternalStore), TypeScript 4.7+ (recommended)
v5 New Features
useMutationState - Cross-Component Mutation Tracking
Access mutation state from anywhere without prop drilling:
import { useMutationState } from '@tanstack/react-query'
function GlobalLoadingIndicator() {
// Get all pending mutations
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9Ktanstack-start
Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. No template repo — Claude generates every file fresh per project.
1.6K