fix(react): dont remove pages when navigating between tabs, fixes #20398 (#20431)

This commit is contained in:
Ely Lucas
2020-02-10 11:58:43 -07:00
parent 27a219874c
commit b6fbe98812

View File

@ -154,7 +154,7 @@ export class RouteManager extends React.Component<RouteManagerProps, RouteManage
* record the view that originally directed to the new view for back button purposes.
*/
enteringView.prevId = leavingView.id;
} else {
} else if (direction !== 'none') {
leavingView.mount = false;
this.removeOrphanedViews(enteringView, enteringViewStack);
}