use-before-unload icon indicating copy to clipboard operation
use-before-unload copied to clipboard

🧷React hook to setup an 'onbeforeunload' listener

Results 2 use-before-unload issues
Sort by recently updated
recently updated
newest added

update Company name

Initally ```js const [state, setState] = useState(false); useBeforeUnload(state); ``` Subsequently ```js setState(true); ``` **Expected result** After setState, I get the prompt when navigating away. **Actual result** No prompt is shown...