Skip to content

Glossary: Vue.js

onWatcherCleanup

A function called inside a watcher that registers code to run just before the watcher runs again, so each run can cancel the previous one's work.

Where the book teaches it

Related terms

Cleanup functionAbortControllerwatchEffect