Skip to content
Z

zustand

Zustand stores: state shapes and type sources, state-only stores

by lobehubFree

Launch
#1023in AI Skills
0In stores

Description

zustand is an agent skill from the LobeHub repository with the conventions for Zustand stores. It covers state shapes and where their types…

Highlights

  • State-only store pattern as the default for new stores
  • Detail data cached by id instead of one current object
  • Selector aggregates in a selectors file
  • Replica-backed list and detail data through @lobechat/replica

Ratings & Reviews

No ratings yet

Be the first to rate zustand.

People also visit

F

frontend-patterns

Frontend development patterns for React, Next.js, state management

AI Skills
Launch
M

modal

Modals, dialogs and confirmations

AI Skills
Launch
R

react

TSX components, UI libraries, styling, state locality, layout

AI Skills
Launch
W

webapp-testing

Test local web applications using Playwright for UI verification and debugging

AI Skills
Launch
C

click-path-audit

Trace every user-facing button/touchpoint through its full state change sequence

AI Skills
Launch
D

dart-flutter-patterns

Production-ready Dart and Flutter patterns covering null safety

AI Skills
Launch

zustand FAQ

What is the state-only store pattern?

The store holds state only, and actions live in separate action classes. It is the default for new and migrated stores.

Where do shared store types come from?

From @lobechat/types, not from @lobechat/database.

How should detail data be cached?

By id, in maps such as xxxDetailMap, and never as one currentDetail object.

How do I install it?

Run npx skills add https://github.com/lobehub/lobehub --skill zustand.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best zustand alternatives?

Popular alternatives to zustand include frontend-patterns, modal and react. See all zustand alternatives

Developer Stuff

Badges