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
When visiting the page of the codesandbox, you'll see an Evaluated log.
This log is in the computed definition and should only be triggered when the computed is evaluated.
This behavior has been seen using an up to date version of chrome and safari.
This does not happen using the same code running on stackblitz and we are not sure why 🤷
With or without the vue devtools
Reproduction
https://codesandbox.io/p/sandbox/restless-sun-to46zm?file=%2Fsrc%2FApp.vue
Steps to reproduce the bug
It occurs with
vue@2.7
andpinia@2.0.33
When visiting the page of the codesandbox, you'll see an
Evaluated
log.This log is in the computed definition and should only be triggered when the computed is evaluated.
Expected behavior
We should see the
Evaluated
log only once thedoubleCount
is evaluated.Actual behavior
The
doubleCount
is evaluated oncestoreToRefs
is called like below, even ifdoubleCount
is never used in the app.Additional information
This behavior has been seen using an up to date version of chrome and safari.
This does not happen using the same code running on stackblitz and we are not sure why 🤷
With or without the vue devtools
Based on the github repository https://github.com/mcastagnetti/storeToRefs-vue-2.7-bug
The text was updated successfully, but these errors were encountered: