@tempots/dom
makeEffectOf() function
Creates an effect that depends on other signals or literal values and updates when any of the dependencies change.
Signature:
makeEffectOf: extends Value<unknown>[]>(...args: T) => (fn: (...args: GetValueTypes) => void) => void
Parameters
Parameter |
Type |
Description |
---|---|---|
args |
T |
The array of signals or literal values that the effect depends on. |
Returns: (fn: (...args: GetValueTypes
A disposable object that can be used to stop the effect.