-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 triggered from previous route component #374
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.0.0-beta.2
Reproduction link
https://jsfiddle.net/pqxarzkL/3/
Steps to reproduce
What is expected?
I expect only one log from active route component.
What is actually happening?
Console contains 2 logs. One from active route component and another one from already destroyed component.
Vue documentation(https://composition-api.vuejs.org/api.html#watcheffect) says, that watchEffect "invoked after all component update effects". But in this case watchEffect invoked after component was destroyed.
The text was updated successfully, but these errors were encountered: