Skip to content

DisposableEffect

Defined in: function-types.ts:31

DisposableEffect is a type alias for functions that can be used as effects in a state machine. It can be either an effect with teardown or a simple effect function. This allows for flexibility in how effects are defined and used within the state machine lifecycle.

Type Parameter
E

DisposableEffect(ev: E): void | DisposeFunc

Defined in: function-types.ts:23

DisposableEffect is a type alias for functions that can be used as effects in a state machine. It can be either an effect with teardown or a simple effect function. This allows for flexibility in how effects are defined and used within the state machine lifecycle.

ParameterType
evE

void | DisposeFunc