Skip to content

Commit

Permalink
fix(core): test remove initial task in microtask
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 committed Sep 13, 2023
1 parent 59387ee commit 506a0fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/initial_render_pending_tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
}

Expand Down

0 comments on commit 506a0fe

Please sign in to comment.