Skip to content

Glossary: Vue.js

Cleanup function

Also written: cleanup

A function a watcher runs just before its next run, used to cancel earlier work such as an in-flight request. It is registered with `onWatcherCleanup(fn)`.

Where the book teaches it

Related terms

onWatcherCleanupAbortControllerwatchEffect