Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch is executed twice even though it's paused #12874

Closed
DamianGlowala opened this issue Feb 13, 2025 · 2 comments
Closed

Watch is executed twice even though it's paused #12874

DamianGlowala opened this issue Feb 13, 2025 · 2 comments

Comments

@DamianGlowala
Copy link
Contributor

@DamianGlowala DamianGlowala changed the title Watcher executed twice even though if paused Watch is executed twice even though it's paused Feb 13, 2025
@jh-leong
Copy link
Member

This behavior is expected.

If the dependencies change while the watcher is paused, it will trigger a re-run once resumed.

@DamianGlowala
Copy link
Contributor Author

Ah, I couldn't find such information in the docs, that explains it well! Thank you. Wish this was somehow configurable. Had a look at https://vueuse.org/shared/watchPausable/#watchpausable and fortunately this one isn't re-run once resumed.

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

No branches or pull requests

2 participants