> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# vue-watch-missing-cleanup

> onMounted registers a global listener, timer or observer with no unmount cleanup.

## What it flags

onMounted registers a global listener, timer or observer with no unmount cleanup.

An empty unmount callback leaves the resource running. Register the resource release with `onUnmounted()`, `onBeforeUnmount()`, or `onScopeDispose()`.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "vue-watch-missing-cleanup": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.