Zustand
LobeHub Zustand store conventions. Use when editing src/store, store slices, public/internal actions, dispatch actions, flattenActions, optimistic updates, selectors, maps, or class action migration.
- Type
- Skill
- Author
- lobehub
- Category
- Frontend
- GitHub stars
- 83.5K
- Installs
- 6.9K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/lobehub/lobehub --skill zustandUse cases
- Match LobeHub's conventions when adding a new store slice.
- Refactor class-based actions into the project's dispatch action pattern.
- Check selector, map or optimistic update patterns before editing src/store.
Frequently Asked Questions
When should this skill be used?
When editing or refactoring LobeHub state management, particularly inside src/store.
Does it cover flattenActions?
Yes, flattenActions is listed among the conventions alongside public and internal actions, dispatch actions and selectors.
Can it help migrate class-based actions?
Yes, class action migration is one of the areas the skill covers.
About this skill
Documents LobeHub's Zustand store conventions for working in src/store. It covers store slices, public and internal actions, dispatch actions, flattenActions, optimistic updates, selectors, maps, and migrating class-based actions. Use it when editing or refactoring LobeHub state management so changes match the project's established patterns.
Summary written with AI assistance from the project's public description.
More from lobehub
React
LobeHub React component conventions. Use when editing TSX UI, choosing base-ui vs @lobehub/ui vs antd, styling with antd-style, component boundarie...
by lobehub
Drizzle
LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign key...
by lobehub
Typescript
LobeHub TypeScript style and type-safety guide. Use when editing TS/TSX/MTS, fixing types, choosing interface vs type, avoiding any/object, import...
by lobehub
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh