Skip to content

Commit

Permalink
fix(react): remove leaving view when routerdirection is back, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
elylucas committed Jan 23, 2020
1 parent ec6a8dd commit 63d4e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/src/ReactRouter/Router.tsx
Expand Up @@ -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);
}
Expand Down

0 comments on commit 63d4e87

Please sign in to comment.