diff --git a/packages/core/src/initial_render_pending_tasks.ts b/packages/core/src/initial_render_pending_tasks.ts index 65223aeca772e..d3ccb2f568a98 100644 --- a/packages/core/src/initial_render_pending_tasks.ts +++ b/packages/core/src/initial_render_pending_tasks.ts @@ -36,7 +36,9 @@ export class InitialRenderPendingTasks implements OnDestroy { remove(taskId: number): void { this.pendingTasks.delete(taskId); if (this.pendingTasks.size === 0) { - this.hasPendingTasks.next(false); + queueMicrotask(() => { + this.hasPendingTasks.next(false); + }); } }