Skip to content

Commit 44cf00e

Browse files
committed
fix(zone): main thread promise handling issue
1 parent 5a88bc2 commit 44cf00e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/angular/tsconfig.lib.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"declarationMap": false
55
},
66
"angularCompilerOptions": {
7-
"compilationMode": "full"
7+
"compilationMode": "partial"
88
}
99
}

packages/zone-js/dist/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ Zone.__load_patch('nativescript_event_target_api', (g, z, api: any) => {
5353
Zone.__load_patch('nativescript_patch_class_api', (g, z, api) => {
5454
api.patchClass = (className: string) => patchClass(className, api);
5555
});
56+
57+
// Initialize zone microtask queue on main thread
58+
// TODO: dive into the ios runtime (PromiseProxy) and find a better solution
59+
Promise.resolve().then(() => {});

0 commit comments

Comments
 (0)