use-last-call

A custom React Hook that executes a callback when a user is exiting your app- in both desktop and mobile browsers.