Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Add rule not to remove the screen being used in a pending navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Aug 24, 2018
1 parent 176f083 commit 31b0acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class App extends EventEmitter {
Object.keys(this.screens).forEach((path) => {
if (path === this.activePath) {
this.activeScreen.clearCache();
} else {
} else if (!(this.isNavigationPending && this.pendingNavigate.path === path)) {
this.removeScreen(path);
}
});
Expand Down

0 comments on commit 31b0acd

Please sign in to comment.