You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the fiddle, hit the "increase X" button to see the watcher working.
Click "Use new instance of component"
Hit "increase X"
The computed doesn't update
If you change the URL to Vue 2.6, the example does work.
In Vue 2.7.x, computed properties can get destroyed and stop working if their instance is created inside of another component's created, but the instance is also used again by another component later.
What is expected?
Computed properties should only be torn down by their own instance
What is actually happening?
Computed properties are getting torn down by another instance destroying
To me it looks like the conditional on this line should be reversed: shouldn't it be vm._scope || activeEffectScope?
The text was updated successfully, but these errors were encountered:
Version
2.7.8
Reproduction link
jsfiddle.net/p0Leh19d/
Steps to reproduce
If you change the URL to Vue 2.6, the example does work.
In Vue 2.7.x, computed properties can get destroyed and stop working if their instance is created inside of another component's
created
, but the instance is also used again by another component later.What is expected?
Computed properties should only be torn down by their own instance
What is actually happening?
Computed properties are getting torn down by another instance destroying
To me it looks like the conditional on this line should be reversed: shouldn't it be
vm._scope || activeEffectScope
?The text was updated successfully, but these errors were encountered: