We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218c5bd commit a99cb7cCopy full SHA for a99cb7c
packages/core/src/change_detection/scheduling/zoneless_scheduling_impl.ts
@@ -52,7 +52,9 @@ export class ChangeDetectionSchedulerImpl implements ChangeDetectionScheduler {
52
}
53
54
this.pendingRenderTaskId = this.taskService.add();
55
- if (Zone?.root?.run) {
+ // TODO(atscott): This zone.root.run can maybe just be removed when we more
56
+ // effectively get the unpatched versions of setTimeout and rAF (#55092)
57
+ if (typeof Zone !== 'undefined' && Zone.root?.run) {
58
Zone.root.run(() => {
59
this.cancelScheduledCallback = this.schedule(() => {
60
this.tick(this.shouldRefreshViews);
0 commit comments