Skip to main content

zustand

Stars0
Forks0
UpdatedJuly 11, 2026 at 09:33

Expert Zustand (v5) state management for React โ€” writing stores, selectors, middleware (persist/devtools/immer), TypeScript typing, Next.js/SSR architecture, testing, and eliminating unnecessary re-renders. Use this skill whenever the user creates or edits a Zustand store, mentions zustand, create()/createStore/useStore/useShallow/persist, asks about React global/client state management or state libraries, hits "Maximum update depth exceeded" / "getSnapshot should be cached" errors, complains about React re-renders tied to a store, migrates from Redux/Context to Zustand or from Zustand v4 to v5, or wires state into Next.js App Router โ€” even if they don't say "zustand" explicitly but the code imports it. Also covers state management in Tauri desktop/mobile apps (Rust tauri::State vs webview stores, invoke/events, multi-window sync, tauri-plugin-store persistence) โ€” use it for any Tauri + React state question, and for "where should this state live" decisions in Tauri apps generally.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly