Type alias EffectFn

EffectFn: ((observer_id) => void | undefined | boolean)

type definition for an effect function. to be used as a call parameter for createEffect
the return value of the function describes whether or not the signal should propagate.
if undefined or true (or truethy), then the effect signal will propagate onto its observer signals, otherwise if it is explicitly false, then it won't propagate.

Type declaration

    • (observer_id): void | undefined | boolean
    • Parameters

      Returns void | undefined | boolean

Generated using TypeDoc