diff --git a/apps/nativescript-demo-ng/src/polyfills.ts b/apps/nativescript-demo-ng/src/polyfills.ts index 05df962..341e492 100644 --- a/apps/nativescript-demo-ng/src/polyfills.ts +++ b/apps/nativescript-demo-ng/src/polyfills.ts @@ -11,10 +11,10 @@ import '@nativescript/angular/polyfills'; * Zone.js and patches */ // Add pre-zone.js patches needed for the NativeScript platform -import '@nativescript/zone-js/dist/pre-zone-polyfills'; +// import '@nativescript/zone-js/dist/pre-zone-polyfills'; -// Zone JS is required by default for Angular itself -import 'zone.js'; +// // Zone JS is required by default for Angular itself +// import 'zone.js'; -// Add NativeScript specific Zone JS patches -import '@nativescript/zone-js'; +// // Add NativeScript specific Zone JS patches +// import '@nativescript/zone-js'; diff --git a/packages/angular/polyfills/src/index.ts b/packages/angular/polyfills/src/index.ts index af6006c..1cda701 100644 --- a/packages/angular/polyfills/src/index.ts +++ b/packages/angular/polyfills/src/index.ts @@ -30,3 +30,5 @@ const polyfilledPerformance = getPerformanceObject(); for (const key in polyfilledPerformance) { global.performance[key] ??= polyfilledPerformance[key]; } + +global.queueMicrotask ??= (fn: () => unknown) => Promise.resolve().then(fn);