fix(router): transition race condition

fixes #14873
fixes #15090
This commit is contained in:
Manu Mtz.-Almeida
2018-08-09 02:40:27 +02:00
parent 01690452e9
commit 50ad1e7c5a
9 changed files with 143 additions and 59 deletions

View File

@ -162,11 +162,11 @@ export class IonRouterOutlet implements OnDestroy, OnInit {
}
function emitEvent(el: HTMLElement) {
const event = new CustomEvent('ionRouterOutletActivated', {
const ev = new CustomEvent('ionRouterOutletActivated', {
bubbles: true,
cancelable: true,
});
el.dispatchEvent(event);
el.dispatchEvent(ev);
}
class OutletInjector implements Injector {

View File

@ -39,7 +39,6 @@ export class StackController {
const leavingView = this.getActive();
this.insertView(enteringView, direction);
await this.transition(enteringView, leavingView, direction, animated, this.canGoBack(1));
this.cleanup();
}