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

Function isWatched

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

Source from the content-addressed store, hash-verified

112let counter = 0;
113
114function isWatched(id: string): boolean {
115 const watchRef = signalDebugNodeMap.get(id)?.watch;
116 if (!watchRef) return false;
117 const watchNode = watchRef.deref();
118 return watchNode !== undefined && !watchNode.destroyed;
119}
120
121function getNodesAndEdgesFromSignalMap(signalMap: ReadonlyMap<ReactiveNode, ReactiveNode[]>): {
122 nodes: DebugSignalGraphNode[];

Callers 1

Calls 2

getMethod · 0.65
derefMethod · 0.45

Tested by

no test coverage detected