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

Function consumerAfterComputation

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

Source from the content-addressed store, hash-verified

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

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