MCPcopy Create free account
hub / github.com/angular/angular / unwatchSignal

Function unwatchSignal

packages/core/src/render3/util/signal_debug.ts:402–412  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

400}
401
402function unwatchSignal(id: string) {
403 const entry = signalDebugNodeMap.get(id);
404 if (entry?.watch) {
405 const watchNode = entry.watch.deref();
406 if (watchNode && !watchNode.destroyed) {
407 watchNode.destroyed = true;
408 consumerDestroy(watchNode);
409 }
410 entry.watch = undefined;
411 }
412}

Callers 2

signal_debug.tsFile · 0.85
toggleWatchSignalFunction · 0.85

Calls 3

consumerDestroyFunction · 0.90
getMethod · 0.65
derefMethod · 0.45

Tested by

no test coverage detected