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

Function consumerBeforeComputation

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

Source from the content-addressed store, hash-verified

392 * begin.
393 */
394export function consumerBeforeComputation(node: ReactiveNode | null): ReactiveNode | null {
395 if (node) resetConsumerBeforeComputation(node);
396
397 return setActiveConsumer(node);
398}
399
400/**
401 * Prepare this consumer to run a computation in its reactive context.

Callers 7

phaseFnFunction · 0.90
refreshViewFunction · 0.90
runDebugWatchFunction · 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