MCPcopy
hub / github.com/angular/angular / consumerAfterComputation

Function consumerAfterComputation

packages/core/primitives/signals/src/graph.ts:427–434  ·  view source on GitHub ↗
(
  node: ReactiveNode | null,
  prevConsumer: ReactiveNode | null,
)

Source from the content-addressed store, hash-verified

425 * have finished.
426 */
427export function consumerAfterComputation(
428 node: ReactiveNode | null,
429 prevConsumer: ReactiveNode | null,
430): void {
431 setActiveConsumer(prevConsumer);
432
433 if (node) finalizeConsumerAfterComputation(node);
434}
435
436/**
437 * Finalize this consumer's state after a reactive computation has run.

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…