Skip to content

DisposableEffect

DisposableEffect<E> = EffectFunc<E> | SetupFunc<E>

Defined in: function-types.ts:30

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