Skip to content

docs: clarify asynchronous watcher callbacks - #3450

Open
KesleyDavid wants to merge 1 commit into
vuejs:mainfrom
KesleyDavid:docs/fix-3447-async-callback
Open

docs: clarify asynchronous watcher callbacks#3450
KesleyDavid wants to merge 1 commit into
vuejs:mainfrom
KesleyDavid:docs/fix-3447-async-callback

Conversation

@KesleyDavid

Copy link
Copy Markdown

Description of Problem

The phrase "async callback" could be read as a callback declared with async, which made the watcher ownership restriction unclear.

Closes #3447

Proposed Solution

Clarify that the restriction applies to callbacks that run asynchronously, such as setTimeout, and note that top-level await in <script setup> preserves the active component instance context.

Additional Information

  • Validation: pnpm run build
  • AI assistance note: This small documentation clarification was drafted with AI assistance and reviewed by the contributor.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 061cd16
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6a760acf54489b00083ac187
😎 Deploy Preview https://deploy-preview-3450--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@KesleyDavid
KesleyDavid marked this pull request as ready for review August 7, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify what is an "async callback" in "Stopping a Watcher"

1 participant