Skip to content

UI must be created before first render, drainMicroTasks when the first page is created #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nativescript-angular/platform-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,18 @@ export class NativeScriptPlatformRef extends PlatformRef {
reject(err);
}
});

(<any>global).Zone.drainMicroTaskQueue();
});

page.on(Page.navigatingToEvent, initHandler);

return page;
}
},
animated: false
};

if (isReboot) {
navEntry.animated = false;
navEntry.clearHistory = true;
}

Expand Down
2 changes: 2 additions & 0 deletions nativescript-angular/zone-js/dist/zone-nativescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ var Zone$1 = (function (global) {
_isDrainingMicrotaskQueue = false;
}
}
Zone.drainMicroTaskQueue = drainMicroTaskQueue;
function isThenable(value) {
return value && value.then;
}
Expand Down Expand Up @@ -1576,6 +1577,7 @@ function patchEventTargetMethods(obj, addFnName, removeFnName, metaCreator) {
return false;
}
}
var originalInstanceKey = zoneSymbol('originalInstance');
// wrap some native API on `window`


Expand Down