MCPcopy
hub / github.com/angular/angular / consumerBeforeComputation

Function consumerBeforeComputation

packages/core/primitives/signals/src/graph.ts:389–393  ·  view source on GitHub ↗
(node: ReactiveNode | null)

Source from the content-addressed store, hash-verified

387 * begin.
388 */
389export function consumerBeforeComputation(node: ReactiveNode | null): ReactiveNode | null {
390 if (node) resetConsumerBeforeComputation(node);
391
392 return setActiveConsumer(node);
393}
394
395/**
396 * Prepare this consumer to run a computation in its reactive context.

Callers 6

phaseFnFunction · 0.90
refreshViewFunction · 0.90
runEffectFunction · 0.90
runFunction · 0.90
producerRecomputeValueFunction · 0.90
producerRecomputeValueFunction · 0.90

Calls 2

setActiveConsumerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…