← Back to browse
skill
LobeHub Zustand State Management Patterns
From lobehub/lobe-chat
Summary
Defines the architectural conventions for managing state within LobeHub using Zustand, including action hierarchies, optimistic update patterns, and class-based slice composition. It provides guidance on implementing public, internal, and dispatch layers using flattenActions for efficient state transitions.