Skip to content

SetValue

type SetValue<T> = (next) => void;

Defined in: packages/core/src/state/types.ts:6

Sets a value directly, or derives it from the previous one — the setter useControllableState returns and StoreController.setValue accepts.

Type Parameter
T
Parameter Type
next T | ((prev) => T)

void