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

Function setActiveConsumer

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

Source from the content-addressed store, hash-verified

44export const SIGNAL: unique symbol = /* @__PURE__ */ Symbol('SIGNAL');
45
46export function setActiveConsumer(consumer: ReactiveNode | null): ReactiveNode | null {
47 const prev = activeConsumer[0];
48 activeConsumer[0] = consumer;
49 return prev;
50}
51
52export function getActiveConsumer(): ReactiveNode | null {
53 return activeConsumer[0];

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected