updateSettings

A function that updates the exit intent settings.

Params

  • settings: Object (required)

Example

const { updateSettings } = useExitIntent()

function handleUpdateSettings() {
  updateSettings({
    cookie: {
      key: 'exit-intent',
      daysToExpire: 30
    }
  })
}