fix(react): removing pages from DOM on nav, fixes #19701 (#19712)

This commit is contained in:
Ely Lucas
2019-10-21 06:25:01 -06:00
committed by GitHub
parent d8ca878cb1
commit ee21d3ae43
2 changed files with 22 additions and 19 deletions

View File

@ -85,16 +85,4 @@ export class ViewStacks {
return { view, viewStack };
}
setHiddenViews() {
const keys = this.getKeys();
keys.forEach(key => {
const viewStack = this.viewStacks[key];
viewStack!.views.forEach(view => {
if (!view.routeData.match && !view.isIonRoute) {
view.show = false;
view.mount = false;
}
});
});
}
}