use-last-call
A custom React Hook that executes a callback when a user is exiting your app- in both desktop and mobile browsers.
A custom React Hook that executes a callback when a user is exiting your app- in both desktop and mobile browsers.
React component and hook which listens to the beforeunload window event.
React Hook to prompt the user for confirmation before leaving the page.
[![npm version](https://badge.fury.io/js/%40garage-panda%2Fuse-before-unload.svg)](https://badge.fury.io/js/%40garage-panda%2Fuse-before-unload)
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.