Zustand · Concept
Next.js setup
Use separate Zustand store instances for request-specific Next.js data. A module-level store is global state, so React context is optional but useful for passing a scoped store.
Last updated
In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SSR and hydrationInitialize state with propsTesting stores and componentsReact context