fix(navigation): fix frame.navigate call inside page.navigatedTo handler (#5649)

This commit is contained in:
Manol Donev
2018-04-11 11:25:54 +03:00
committed by GitHub
parent c06d5bae63
commit cf950e1ebb
2 changed files with 44 additions and 2 deletions

View File

@@ -216,8 +216,13 @@ export class FrameBase extends CustomLayoutView implements FrameDefinition {
}
this._currentEntry = entry;
this._executingEntry = null;
newPage.onNavigatedTo(isBack);
// Reset executing entry after NavigatedTo is raised;
// we do not want to execute two navigations in parallel in case
// additional navigation is triggered from the NavigatedTo handler.
this._executingEntry = null;
}
public _updateBackstack(entry: BackstackEntry, isBack: boolean): void {