MCPcopy
hub / github.com/angular/angular / setActiveConsumer

Function setActiveConsumer

packages/core/primitives/signals/src/graph.ts:42–46  ·  view source on GitHub ↗
(consumer: ReactiveNode | null)

Source from the content-addressed store, hash-verified

40export const SIGNAL: unique symbol = /* @__PURE__ */ Symbol('SIGNAL');
41
42export function setActiveConsumer(consumer: ReactiveNode | null): ReactiveNode | null {
43 const prev = activeConsumer;
44 activeConsumer = consumer;
45 return prev;
46}
47
48export function getActiveConsumer(): ReactiveNode | null {
49 return activeConsumer;

Callers 15

emitMethod · 0.90
destroyMethod · 0.90
hydrateMethod · 0.90
emitMethod · 0.90
ApplicationRefClass · 0.90
cleanUpViewFunction · 0.90
reconcileFunction · 0.90
callHookInternalFunction · 0.90
createMethod · 0.90
cleanupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…