store-data-structures
CommunityDesign robust Zustand stores for scalable apps.
AuthorStaysr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Zustand store design often mixes list data and detailed pages, leading to hard-to-maintain state, duplicated fetches, and poor performance. This Skill guides you to split list state (arrays) from detail state (maps) to enable fast navigation and optimistic updates.
Core Features & Use Cases
- Clear separation of list data (arrays) and detail data (maps) for multiple open pages.
- Use Map for detail pages to cache and update items individually with per-item loading states.
- Reducer-based immutable updates (Immer) and type-safe actions for predictable state changes.
- Strong guidance on computed/UI-friendly list types and documentation practices.
Quick Start
Create a Zustand store slice with a list array named xxxList and a detail map named xxxDetailMap, and implement a reducer to manage set/update/delete of detail entries.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: store-data-structures Download link: https://github.com/Staysr/lobe-windos-build/archive/main.zip#store-data-structures Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.