Skip to content

bindEffects

bindEffects<EffectsConfig, Exhaustive>(machine: { effect: (val: any) => void; }, getEffects: (state: any) => undefined | EffectMatchbox[], matchers: MatchCases<EffectsConfig, any, Exhaustive>, exhaustive: Exhaustive): DisposeFunc

Defined in: extras/bind-effects.ts:7

Type ParameterDefault type
EffectsConfig extends TaggedTypes-
Exhaustive extends booleanfalse
ParameterType
machine{ effect: (val: any) => void; }
machine.effect(val: any) => void
getEffects(state: any) => undefined | EffectMatchbox[]
matchersMatchCases<EffectsConfig, any, Exhaustive>
exhaustiveExhaustive

DisposeFunc