Skip to content

Conversation

Thomaash
Copy link
Contributor

@Thomaash Thomaash commented Jul 8, 2025

πŸ”— Linked issue

resolves #1332

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Immediate watches are executed before the first render but since emit was intercepted in render function, their events were lost. Intercepting emit in setup solves this issue.

@Thomaash Thomaash requested a review from danielroe as a code owner July 8, 2025 10:14
Copy link

pkg-pr-new bot commented Jul 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/test-utils@1353

commit: 3ee18ae

@danielroe danielroe merged commit e4c9b3c into nuxt:main Jul 10, 2025
6 checks passed
@danielroe
Copy link
Member

thank you ❀️

@github-actions github-actions bot mentioned this pull request Jul 10, 2025
@github-actions github-actions bot mentioned this pull request Sep 6, 2025
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.

mountSuspended does not catch event emitted in immediate watcher with options API
2 participants