Skip to content

SetState

SetState<TState> = StoreApi<TState>["setState"]

Defined in: types.ts:7

A function that updates store state. Accepts either a partial state object or a function returning one.

TState