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

Function scheduleDeferBlockUpdate

packages/core/src/defer/rendering.ts:382–398  ·  view source on GitHub ↗

* Schedules an update operation after a specified timeout.

(
  timeout: number,
  lDetails: LDeferBlockDetails,
  tNode: TNode,
  lContainer: LContainer,
  hostLView: LView<unknown>,
)

Source from the content-addressed store, hash-verified

380 * Schedules an update operation after a specified timeout.
381 */
382function scheduleDeferBlockUpdate(
383 timeout: number,
384 lDetails: LDeferBlockDetails,
385 tNode: TNode,
386 lContainer: LContainer,
387 hostLView: LView<unknown>,
388): VoidFunction {
389 const callback = () => {
390 const nextState = lDetails[NEXT_DEFER_BLOCK_STATE];
391 lDetails[STATE_IS_FROZEN_UNTIL] = null;
392 lDetails[NEXT_DEFER_BLOCK_STATE] = null;
393 if (nextState !== null) {
394 renderDeferBlockState(nextState, tNode, lContainer);
395 }
396 };
397 return scheduleTimerTrigger(timeout, callback, hostLView[INJECTOR]);
398}
399
400/**
401 * Checks whether we can transition to the next state.

Callers 1

Calls 1

scheduleTimerTriggerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…