API reference · generated from source
Interface: IReactiveDependency<TNode>#
Defined in: ReactiveNode.ts:120
A dependency for ReactiveNode.
Remarks#
If no IReactiveDependency.comparisons are provided, any change to node will emit an update to the ReactiveNode.
Otherwise, a change will emit when any new value in IReactiveDependency.comparisons does not equal the previous checked value.
The order and length of IReactiveDependency.comparisons must remain unchanged between updates.
Type Parameters#
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
comparisons? | any[] | Optional. Values to compare between updates to node. Remarks When undefined, any change to node will emit an update to the ReactiveNode. Otherwise, a change will emit when any new value the list does not equal the previous checked value. The order and length of IReactiveDependency.comparisons must remain unchanged between updates. | ReactiveNode.ts:132 |
node | OptionalNode<TNode> | The node to listen to "nodeChanged" events for. | ReactiveNode.ts:124 |