Reference Documentation ↗
Setup a callback to be fired on the window's beforeunload event.
beforeunload
useBeforeUnload(callback, options): void
No documentation