react-beforeunload-state
React Hook to prevent leave window if state is different with setting value
React Hook to prevent leave window if state is different with setting value
React component and hook which listens to the beforeunload window event.
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.
[](https://badge.fury.io/js/%40garage-panda%2Fuse-before-unload)
React Hook to prompt the user for confirmation before leaving the page.
A JavaScript library to observe Page Lifecycle API states: https://github.com/WICG/page-lifecycle
React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.