(
node: Solid.Computation | Solid.Memo | Solid.Signal,
handler: VoidFunction,
)
| 33 | export type OnNodeUpdate = typeof OnNodeUpdate |
| 34 | |
| 35 | function observeNodeUpdate( |
| 36 | node: Solid.Computation | Solid.Memo | Solid.Signal, |
| 37 | handler: VoidFunction, |
| 38 | ) { |
| 39 | if (isSolidOwner(node)) observeComputationUpdate(node, handler, $DGRAPH) |
| 40 | else observeValueUpdate(node, handler, $DGRAPH) |
| 41 | } |
| 42 | function unobserveNodeUpdate(node: Solid.Computation | Solid.Memo | Solid.Signal) { |
| 43 | if (isSolidOwner(node)) removeComputationUpdateObserver(node, $DGRAPH) |
| 44 | else removeValueUpdateObserver(node, $DGRAPH) |
no test coverage detected
searching dependent graphs…