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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
next |
T | ((prev) => T) |
Returns
Section titled “Returns”void