Zustand · Concept
transient updates
Update Zustand state by calling the provided set function. The new top-level fields are shallowly merged into the existing store.
Last updated
Syntax
set(partialState)
set((state) => nextPartialState)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Immutable state and mergingPractice with no store actionsHow to reset statecreateuseStore