Tag: zustand
Advanced Zustand State Management with Class Actions
This skill outlines advanced patterns for managing complex state in Zustand, guiding developers to migrate from simple state creators to class-based actions. It enforces strict conventions for action hierarchy, optimistic updates, and compo…
Zustand State Management Patterns for LobeHub
This guide outlines best practices for structuring state in Zustand stores, advising developers to use simple arrays for list data and Maps for caching multiple detail entities. Adhering to these patterns ensures optimal performance for lis…
Robust Data Fetching Architecture with Zustand and SWR
This pattern provides a robust architecture for managing client-side state and data fetching by enforcing a Service Layer pattern. It guides developers to use SWR hooks within a Zustand store for state management, ensuring clean separation …
LobeHub Zustand State Management Patterns
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 d…
Zustand state data structure patterns guide
This guide outlines architectural patterns for structuring state in Zustand stores, advising developers to use simple arrays for list views and Maps for caching multiple detail entities. It emphasizes separating list and detail types and em…
LobeChat Data Fetching Architecture Guide
A structured architecture for managing data fetching using a service layer, Zustand stores, and SWR. It provides patterns for API encapsulation, cache invalidation, and synchronising client-side state with server-side data.
Opik Frontend Development Patterns
Defines architectural patterns and implementation standards for the Opik React frontend, covering TanStack Router, TanStack Query, and Zustand state management.