MCPcopy Index your code
hub / github.com/angular/angular / onDeferBlockCompletion

Function onDeferBlockCompletion

packages/core/src/defer/triggering.ts:580–585  ·  view source on GitHub ↗

* Registers cleanup functions for a defer block when the block has finished * fetching and rendering

(lDetails: LDeferBlockDetails, callback: VoidFunction)

Source from the content-addressed store, hash-verified

578 * fetching and rendering
579 */
580function onDeferBlockCompletion(lDetails: LDeferBlockDetails, callback: VoidFunction) {
581 if (!Array.isArray(lDetails[ON_COMPLETE_FNS])) {
582 lDetails[ON_COMPLETE_FNS] = [];
583 }
584 lDetails[ON_COMPLETE_FNS].push(callback);
585}
586
587/**
588 * Determines whether specific trigger types should be attached during an instruction firing

Callers 1

Calls 2

isArrayMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…