Skip to content

Commit

Permalink
fix(zone): main thread promise handling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Feb 12, 2022
1 parent 5a88bc2 commit 44cf00e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "full"
"compilationMode": "partial"
}
}
4 changes: 4 additions & 0 deletions packages/zone-js/dist/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ Zone.__load_patch('nativescript_event_target_api', (g, z, api: any) => {
Zone.__load_patch('nativescript_patch_class_api', (g, z, api) => {
api.patchClass = (className: string) => patchClass(className, api);
});

// Initialize zone microtask queue on main thread
// TODO: dive into the ios runtime (PromiseProxy) and find a better solution
Promise.resolve().then(() => {});

0 comments on commit 44cf00e

Please sign in to comment.