MCPcopy Index your code
hub / github.com/angular/angular / ɵɵdeferPrefetchOnTimer

Function ɵɵdeferPrefetchOnTimer

packages/core/src/defer/instructions.ts:522–533  ·  view source on GitHub ↗
(delay: number)

Source from the content-addressed store, hash-verified

520 * @codeGenApi
521 */
522export function ɵɵdeferPrefetchOnTimer(delay: number) {
523 const lView = getLView();
524 const tNode = getCurrentTNode()!;
525
526 if (ngDevMode) {
527 trackTriggerForDebugging(lView[TVIEW], tNode, `prefetch on timer(${delay}ms)`);
528 }
529
530 if (!shouldAttachTrigger(TriggerType.Prefetch, lView, tNode)) return;
531
532 scheduleDelayedPrefetching(onTimer(delay));
533}
534
535/**
536 * Creates runtime data structures for the `on timer` hydrate trigger.

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
getCurrentTNodeFunction · 0.90
trackTriggerForDebuggingFunction · 0.90
shouldAttachTriggerFunction · 0.90
onTimerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…