revert disconnecting page on leaving page

This commit is contained in:
Manu Mtz.-Almeida
2019-07-09 10:31:37 +02:00
parent 7fda509333
commit ab20bf472d
2 changed files with 7 additions and 5 deletions

View File

@ -199,9 +199,11 @@ export class StackController {
if (enteringView) {
enteringView.ref.changeDetectorRef.reattach();
}
if (leavingView) {
leavingView.ref.changeDetectorRef.detach();
}
// TODO: disconnect leaving page from change detection to
// reduce jank during the page transition
// if (leavingView) {
// leavingView.ref.changeDetectorRef.detach();
// }
const enteringEl = enteringView ? enteringView.element : undefined;
const leavingEl = leavingView ? leavingView.element : undefined;
const containerEl = this.containerEl;