@sook/use-prevent-leave
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.
Found 27 results for beforeunload
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.
**this is the package is inspired from react-beforeunload and it support for safari browser as well**
Easy way to determine beforeunload callbacks
React component and hook which listens to the beforeunload window event.
[](https://badge.fury.io/js/%40garage-panda%2Fuse-before-unload)
A notification is displayed if the user wants to leave the page without saving the changes.
React Hook to prevent leave window if state is different with setting value