Remove onAppLeave in useEffectCleanup to prevent confirm when leaving from listing page (#89041) (#89212)

This commit is contained in:
Devon Thomson 2021-01-25 16:34:52 -05:00 committed by GitHub
parent a0d9f75f02
commit 1ef7e12ae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,