Skip to content

Commit

Permalink
fix(react): dont remove pages when navigating between tabs, fixes #20398
Browse files Browse the repository at this point in the history
  • Loading branch information
elylucas committed Feb 10, 2020
1 parent 5bccf31 commit bb6d823
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 {
} else if (direction !== 'none') {
leavingView.mount = false;
this.removeOrphanedViews(enteringView, enteringViewStack);
}
Expand Down

0 comments on commit bb6d823

Please sign in to comment.