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 Parameters
Section titled “Type Parameters”| 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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ev | E |
Returns
Section titled “Returns”void | DisposeFunc