resetState

A function that resets the exit intent state and allows the user to trigger the exit intent handlers again.


Example

const { resetState } = useExitIntent()

function handleReset() {
  resetState()
}