use-last-call (npm): A custom React Hook that executes a callback when a user is exiting your app- in both desktop and mobile browsers.
Keywords: beforeunload|page-visibility|pagehide|react-hooks|typescript|visibilitychange