This skill provides specialized guidance for architecting complex game states using Zustand. It covers modular store slices with Immer for immutable updates, robust persistence systems for save/load functionality, and integrated undo/redo capabilities via Zundo. The skill focuses heavily on performance optimization, providing patterns for selector memoization, shallow comparisons, and batched updates to prevent unnecessary re-renders in state-heavy games. Whether you are building an RPG, strategy game, or interactive dashboard, this skill helps ensure your state management is scalable, testable, and efficient.
Key Features
01Modular store slicing with Immer integration
020 GitHub stars
03Unit testing patterns for game logic and side effects
04Undo/Redo and time-travel debugging implementation
05Persistence logic for local storage and multi-slot save systems
06Performance-optimized selector and subscription patterns