A generic onbeforeunload handler. Will check a list of supplied conditions to determine if it is safe to unload.
A JavaScript library to observe Page Lifecycle API states: https://github.com/WICG/page-lifecycle
React component and hook which listens to the beforeunload window event.
TypeScript definitions for react-beforeunload
A unified API to reliably send data on beforeunload.