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

This commit is contained in:
Devon Thomson 2021-01-25 14:28:26 -05:00 committed by GitHub
parent 15a45e8c38
commit 62b32c0a2a
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,