* Schedules an update operation after a specified timeout.
( timeout: number, lDetails: LDeferBlockDetails, tNode: TNode, lContainer: LContainer, hostLView: LView<unknown>, )
| 380 | * Schedules an update operation after a specified timeout. |
| 381 | */ |
| 382 | function 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. |
no test coverage detected
searching dependent graphs…