fix(react): remove leaving view when routerdirection is back, fixes #20124 (#20268)

This commit is contained in:
Ely Lucas
2020-01-22 17:07:22 -07:00
parent 9b2680d40d
commit 5d8e0ed703

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 if (action === 'pop' || action === 'replace') {
} else {
leavingView.mount = false;
this.removeOrphanedViews(enteringView, enteringViewStack);
}