Skip to content

Commit

Permalink
fix: revert change on NgZone scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Dec 12, 2024
1 parent 7f176ef commit 6c8a2b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/angular/src/lib/nativescript-ng-zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ export class NativeScriptNgZone implements NgZone {
self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;
self.lastRequestAnimationFrameId = -1;
self.nativeRequestAnimationFrame = function (cb) {
// const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
// nativeDispatchToMainThread(cb);
const nativeDispatchToMainThread = global[Zone.__symbol__('setTimeout')] || global.setTimeout;
nativeDispatchToMainThread(cb, 1000);
const nativeDispatchToMainThread = Utils[Zone.__symbol__('dispatchToMainThread')] || Utils.dispatchToMainThread;
nativeDispatchToMainThread(cb);
return currentRafId++;
};
forkInnerZoneWithAngularBehavior(self);
Expand Down

0 comments on commit 6c8a2b3

Please sign in to comment.