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

watcher runs while the component is being unmounted #1603

Closed
posva opened this issue Jul 16, 2020 · 0 comments
Closed

watcher runs while the component is being unmounted #1603

posva opened this issue Jul 16, 2020 · 0 comments

Comments

@posva
Copy link
Member

posva commented Jul 16, 2020

Version

3.0.0-beta.23

Reproduction link

https://jsfiddle.net/w54fzat2/

Steps to reproduce

Click on toggle multiple times

What is expected?

no logs

What is actually happening?

logs at every toggle


Coming from #1525 (comment) and vuejs/router#374

I think it would make more sense to not trigger the watcher while the component is unmounting. It would also be consistent with Vue 2 https://jsfiddle.net/7webxnam/.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant