---
title: "Watchers in depth · vuejs.school"
description: "Control when a watcher runs with its options, cancel stale work with onWatcherCleanup(), and pause, resume or stop it."
canonical_url: "https://vuejs.school/learn/advanced/watchers-in-depth"
meta:
  "og:description": "Control when a watcher runs with its options, cancel stale work with onWatcherCleanup(), and pause, resume or stop it."
  "og:image": "https://vuejs.school/_og/d/a_~V2F0Y2hlcnMgaW4gZGVwdGggwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Watchers%2Bin%2Bdepth%2Cdescription_~Q29udHJvbCB3aGVuIGEgd2F0Y2hlciBydW5zIHdpdGggaXRzIG9wdGlvbnMsIGNhbmNlbCBzdGFsZSB3b3JrIHdpdGggb25XYXRjaGVyQ2xlYW51cCgpLCBhbmQgcGF1c2UsIHJlc3VtZSBvciBzdG9wIGl0Lg%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiAxIG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC93YXRjaGVycy1pbi1kZXB0aCI%2Cs_7dUMzDYivz8mLcFS.png"
  "og:image:alt": "Watchers in depth · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Watchers in depth · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~V2F0Y2hlcnMgaW4gZGVwdGggwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Watchers%2Bin%2Bdepth%2Cdescription_~Q29udHJvbCB3aGVuIGEgd2F0Y2hlciBydW5zIHdpdGggaXRzIG9wdGlvbnMsIGNhbmNlbCBzdGFsZSB3b3JrIHdpdGggb25XYXRjaGVyQ2xlYW51cCgpLCBhbmQgcGF1c2UsIHJlc3VtZSBvciBzdG9wIGl0Lg%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiAxIG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC93YXRjaGVycy1pbi1kZXB0aCI%2Cs_7dUMzDYivz8mLcFS.png"
  "twitter:image:alt": "Watchers in depth · vuejs.school"
---

> Index of every page on this site: [llms.txt](https://vuejs.school/llms.txt)

# **Watchers in depth**

Control when a watcher runs with its options, cancel stale work with onWatcherCleanup(), and pause, resume or stop it.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuejs.school/#website","@type":"WebSite","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school/","publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#webpage","@type":"WebPage","description":"Control when a watcher runs with its options, cancel stale work with onWatcherCleanup(), and pause, resume or stop it.","name":"Watchers in depth","url":"https://vuejs.school/learn/advanced/watchers-in-depth","breadcrumb":{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/advanced/watchers-in-depth"]}],"primaryImageOfPage":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/#identity","@type":"Organization","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school","logo":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#article","description":"Control when a watcher runs with its options, cancel stale work with onWatcherCleanup(), and pause, resume or stop it.","headline":"Watchers in depth","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~V2F0Y2hlcnMgaW4gZGVwdGggwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Watchers%2Bin%2Bdepth%2Cdescription_~Q29udHJvbCB3aGVuIGEgd2F0Y2hlciBydW5zIHdpdGggaXRzIG9wdGlvbnMsIGNhbmNlbCBzdGFsZSB3b3JrIHdpdGggb25XYXRjaGVyQ2xlYW51cCgpLCBhbmQgcGF1c2UsIHJlc3VtZSBvciBzdG9wIGl0Lg%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiAxIG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC93YXRjaGVycy1pbi1kZXB0aCI%2Cs_7dUMzDYivz8mLcFS.png","@type":["Article","TechArticle"],"articleSection":["Reactivity"],"author":{"@id":"https://vuejs.school/#identity"},"image":{"@id":"https://vuejs.school/#/schema/image/1"},"isPartOf":{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#webpage"},"keywords":["watch() options","onWatcherCleanup()","pause()/resume()","flush"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/advanced/watchers-in-depth#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Skill tree","item":"https://vuejs.school/track","position":1},{"@type":"ListItem","name":"Advanced Vue","item":"https://vuejs.school/track/advanced","position":2},{"@type":"ListItem","name":"Watchers in depth","position":3}]},{"@id":"https://vuejs.school/#logo","@type":"ImageObject","caption":"vuejs.school","contentUrl":"https://vuejs.school/apple-touch-icon.png","inLanguage":"en","url":"https://vuejs.school/apple-touch-icon.png"},{"@id":"https://vuejs.school/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuejs.school/_og/d/a_~V2F0Y2hlcnMgaW4gZGVwdGggwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Watchers%2Bin%2Bdepth%2Cdescription_~Q29udHJvbCB3aGVuIGEgd2F0Y2hlciBydW5zIHdpdGggaXRzIG9wdGlvbnMsIGNhbmNlbCBzdGFsZSB3b3JrIHdpdGggb25XYXRjaGVyQ2xlYW51cCgpLCBhbmQgcGF1c2UsIHJlc3VtZSBvciBzdG9wIGl0Lg%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiAxIG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC93YXRjaGVycy1pbi1kZXB0aCI%2Cs_7dUMzDYivz8mLcFS.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~V2F0Y2hlcnMgaW4gZGVwdGggwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Watchers%2Bin%2Bdepth%2Cdescription_~Q29udHJvbCB3aGVuIGEgd2F0Y2hlciBydW5zIHdpdGggaXRzIG9wdGlvbnMsIGNhbmNlbCBzdGFsZSB3b3JrIHdpdGggb25XYXRjaGVyQ2xlYW51cCgpLCBhbmQgcGF1c2UsIHJlc3VtZSBvciBzdG9wIGl0Lg%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiAxIG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC93YXRjaGVycy1pbi1kZXB0aCI%2Cs_7dUMzDYivz8mLcFS.png"}]}
```