Skip to content

Type Alias: WatchCallback<T>

WatchCallback<T> = (newValue, oldValue) => void

Defined in: state.ts:12

Represents a callback invoked when a state value changes.

Type Parameters

T

T

The type of the watched value

Parameters

newValue

T

The new value after the change.

oldValue

T

The previous value before the change.

Returns

void