Possible to stop Page Unmount after catching event?

I’d like to be able to catch the user before they navigate away from a page if their changes haven’t been saved on a form I’m building. Is it possible to cancel a page unmount after catching the event? Any other way to do this?

Not at the moment, it would require further native development on the runtime… This would also need a way to disable the iOS swipe-to-go-back gesture.

The only viable way right now is to disable navigation headers for the app and implement them manually as components, with a back button to call Navigate back, but that still leaves Android native back button / iOS swipe-to-go-back.

Added feature request to https://tracker.appgyver.com/feature-requests/p/catch-page-unmounted-navigate-back-event