Skip to content

EffectFactory type

Home > @rimitive/signals > EffectFactory

The effect factory function type. Accepts either a plain function or a FlushStrategy for deferred execution.

Signature:

export type EffectFactory = (run: EffectRun) => () => void;

References: EffectRun