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

Function ɵɵdeferPrefetchOnImmediate

packages/core/src/defer/instructions.ts:454–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452 * @codeGenApi
453 */
454export function ɵɵdeferPrefetchOnImmediate() {
455 const lView = getLView();
456 const tNode = getCurrentTNode()!;
457
458 if (ngDevMode) {
459 trackTriggerForDebugging(lView[TVIEW], tNode, 'prefetch on immediate');
460 }
461
462 if (!shouldAttachTrigger(TriggerType.Prefetch, lView, tNode)) return;
463
464 const tView = lView[TVIEW];
465 const tDetails = getTDeferBlockDetails(tView, tNode);
466
467 if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {
468 triggerResourceLoading(tDetails, lView, tNode);
469 }
470}
471
472/**
473 * Sets up logic to handle the `on immediate` hydrate trigger.

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
getCurrentTNodeFunction · 0.90
trackTriggerForDebuggingFunction · 0.90
shouldAttachTriggerFunction · 0.90
getTDeferBlockDetailsFunction · 0.90
triggerResourceLoadingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…