Next Statecraft

Expert guidance for state management in advanced Next.js (App Router) projects: where state should live (server, URL, cookies, server-state cache, store, reducer, local), how to shape it (finite states, normalization, derive-don't-sync), the React 19 / Next 15 state primitives (useActionState, useOptimistic, useTransition, use(promise), useSyncExternalStore), how server mutations and cache invalidation drive client state, and how to refactor cascading useEffects into event-driven reducers. Use when modeling state, designing forms, picking a state library, wiring TanStack Query with SSR hydration, syncing state to the URL, applying optimistic updates, or debugging stale or duplicated state.

Lukas1098 f957392 19.7 KB Updated

File contents

Lukas1098/next-statecraft/tree/main/skills/next-statecraft commit f957392e40

Frequently asked questions

npx skillmds@latest add lukas1098/next-statecraft