Computationally intensive computed variable within v-if: does it always run? #9711
MarcelloTheArcane
started this conversation in
General Discussions
Replies: 1 comment
-
Computed properties are evaluated only when their value is being read, so the answer would be: No. Provided that this is the only place you access it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My question is about vue 2.6.14.
Assume I have the following layout:
show
defaults to false. If I never click the "Show" button, does thecomputationallyIntensiveComputedVariable
ever run?Beta Was this translation helpful? Give feedback.
All reactions