Remove onAppLeave in useEffectCleanup to prevent confirm when leaving from listing page (#89041)
This commit is contained in:
parent
15a45e8c38
commit
62b32c0a2a
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue