Optional
equalAn equality function used to check whether the value of the signal has been changed. Default is Object.is.
An equality function used to check whether the value of the signal has been changed. Default is Object.is.
Truthy if the values are equal, falsy otherwise.
A new value of the signal.
A previous value of the signal.
Truthy if the values are equal, falsy otherwise.
Optional
nameA name of the signal. Can be accessed inside a lifecycle function via this.
Optional
onA function called when the first subscriber or the first active dependent signal appears.
A function called when the first subscriber or the first active dependent signal appears.
A current value of the signal.
A current value of the signal.
Optional
onA function called at the moment the signal is created.
A function called at the moment the signal is created.
Optional
value: TAn initial value of the signal.
An initial value of the signal.
Optional
onA function called when the last subscriber or the last active dependent signal disappears.
A function called when the last subscriber or the last active dependent signal disappears.
A current value of the signal.
A current value of the signal.
Optional
onA function called whenever an unhandled exception occurs during the calculation of the signal value.
A function called whenever an unhandled exception occurs during the calculation of the signal value.
An exception.
Optional
prevValue: TA previous value of the signal.
An exception.
A previous value of the signal.
Optional
onA function called each time the signal value is updated.
A function called each time the signal value is updated.
A new value of the signal.
A previous value of the signal.
Generated using TypeDoc
An object that stores the options of the signal to be created.