Skip to content

FlushStrategy type

Home > @rimitive/signals > FlushStrategy

A flush strategy controls when effect re-runs execute.

Signature:

export type FlushStrategy = {
run: () => void | (() => void);
create: (track: EffectDeps['track']) => (node: EffectNode) => void;
};

References: EffectNode