This skill equips Claude with the expertise to architect, implement, and debug Zustand state stores within React ecosystems. It focuses on modern TypeScript standards, such as the curried double-parentheses pattern, and provides robust solutions for complex scenarios including persistent storage, Redux DevTools integration, and the slices pattern. Crucially, it includes specialized logic to prevent common production hurdles like Next.js hydration mismatches, infinite render loops caused by unstable selectors, and TypeScript inference failures in middleware-heavy environments.
主要功能
01Persistent state implementation with localStorage and hydration handling
02Seamless Next.js SSR and Redux DevTools integration
03Type-safe store creation using the create<T>()() pattern
04Optimized selector patterns to prevent unnecessary re-renders
0591 GitHub stars
06Advanced store modularization using the slices pattern