Skip to content

Commit 6c8a2b3

Browse files
committed
fix: revert change on NgZone scheduling
1 parent 7f176ef commit 6c8a2b3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/angular/src/lib/nativescript-ng-zone.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,8 @@ export class NativeScriptNgZone implements NgZone {
149149
self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;
150150
self.lastRequestAnimationFrameId = -1;
151151
self.nativeRequestAnimationFrame = function (cb) {
152-
// const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
153-
// nativeDispatchToMainThread(cb);
154-
const nativeDispatchToMainThread = global[Zone.__symbol__('setTimeout')] || global.setTimeout;
155-
nativeDispatchToMainThread(cb, 1000);
152+
const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
153+
nativeDispatchToMainThread(cb);
156154
return currentRafId++;
157155
};
158156
forkInnerZoneWithAngularBehavior(self);

0 commit comments

Comments
 (0)