-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
HMR 🔥Related to Hot Module ReplacementRelated to Hot Module Replacementdiscussion✨ enhancementNew feature or requestNew feature or request
Description
Reproduction
https://github.com/Ericlm/pinia-computed
Steps to reproduce the bug
Since version 2.2.5, computed values are evaluated at the start even if they're not displayed (when using storeToRefs).
It may be related to 254eec7
Expected behavior
The computed should only be evaluated when it is actually used.
Actual behavior
The computed is evaluated even if its value is displayed inside a v-if="false".
Additional information
No response
sceee, andreylysenko, codifryed, ezio-melotti and SavR11
Metadata
Metadata
Assignees
Labels
HMR 🔥Related to Hot Module ReplacementRelated to Hot Module Replacementdiscussion✨ enhancementNew feature or requestNew feature or request