Skip to content
Z

zustand

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

by lobehubFree

#1024in 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

Z

zustand-patterns

Reference for Zustand 5.x state management including slices, middleware, Immer

AI Skills
Get
S

store-data-structures

Explicit compatibility entry for Zustand data-shape guidance

AI Skills
Get
T

tanstack-store

Framework-agnostic, immutable reactive data store

AI Skills
Get
Z

zustand-state-management

Build type-safe global state in React with Zustand

AI Skills
Get
P

pinia

Type-safe Vue state management

AI Skills
Get
Z

zustand

Zustand adapter for json-render's StateStore interface

AI Skills
Get

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 zustand-patterns, store-data-structures and tanstack-store. See all zustand alternatives

Developer Stuff

Badges