use-exit-intent
use-exit-intent copied to clipboard
π βA React Hook to handle exit intent strategies
Hello, currently, the cookie seems to be read once when the component is mounted: https://github.com/daltonmenezes/use-exit-intent/blob/main/packages/use-exit-intent/src/index.ts#L150. This prevents unsubscribe logic to work, if it is triggered from another part of the...
I'm facing a problem with the exit intent hook that when the user clicks on an input and tries to select from the browser autoComplete suggestions it fires , i...
I have integrated the exit intent handler into a website. It works fine in windows. But when it comes to Mac, the exit intent is working correctly if I type...
Are there plans to add additional mobile exit detection strategies? Ones which I'm familiar with are 1. Scroll-down threshold with quick scroll up 2. Device edge swipe detection 3. Back...
- Added `mouseLeaveDelayInSeconds` to the `DesktopOptions` interface - Implemented a timer to enable mouse leave detection after the specified delay - Updated the `useEffect` hook to handle the new behavior...
Hi @daltonmenezes! Thanks for the great module. I was wondering if itβs possible to add an option to set a delay threshold before the modal pops up on a mouse...
When user presses reload btn in browser, the handler is fired but the page then gets refreshed. We need to prevent the default event here - https://github.com/daltonmenezes/use-exit-intent/blob/1b82423dcbff4f76e3dcd4dba8235facc60c7b62/packages/use-exit-intent/src/index.ts#L191 Reference - https://github.com/streamich/react-use/blob/e1d0cd9f7fb2a124a9d46879489abfefdf48d836/src/useBeforeUnload.ts#L13C7-L13C29