@tempots/dom

Signal.setDerivative property

Adds a computed value as a derivative of the signal. When the computed value is disposed, it is automatically removed from the derivatives list. Additionally, when the computed value is disposed, it sets the signal as dirty.

Signature:

readonly setDerivative: (computed: Computed) => void;