Skip to content

Commit

Permalink
Remove onAppLeave in useEffectCleanup to prevent confirm when leaving…
Browse files Browse the repository at this point in the history
… from listing page (#89041)
  • Loading branch information
ThomThomson authored Jan 25, 2021
1 parent 15a45e8 commit 62b32c0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ const TopNav = ({
}
return actions.default();
});
return () => {
// reset on app leave handler so leaving from the listing page doesn't trigger a confirmation
onAppLeave((actions) => actions.default());
};
}, [
onAppLeave,
originatingApp,
Expand Down

0 comments on commit 62b32c0

Please sign in to comment.