MCPcopy Index your code
hub / github.com/angular/angular / destroyWatchNode

Function destroyWatchNode

packages/core/primitives/signals/src/watch.ts:86–96  ·  view source on GitHub ↗
(node: WatchNode)

Source from the content-addressed store, hash-verified

84 }
85
86 function destroyWatchNode(node: WatchNode) {
87 if (!isWatchNodeDestroyed(node)) {
88 consumerDestroy(node); // disconnect watcher from the reactive graph
89 node.cleanupFn();
90
91 // nullify references to the integration functions to mark node as destroyed
92 node.fn = null;
93 node.schedule = null;
94 node.cleanupFn = NOOP_CLEANUP_FN;
95 }
96 }
97
98 const run = () => {
99 if (node.fn === null) {

Callers 1

createWatchFunction · 0.85

Calls 2

consumerDestroyFunction · 0.90
isWatchNodeDestroyedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…