Constant rendering when changing styles #11395
drrastafarai
started this conversation in
General Discussions
Replies: 2 comments 2 replies
-
Computed properties (or "computed" for short) are what you are looking for here: https://vuejs.org/guide/essentials/computed.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because any reactive change that has an impact on any part of the template will result in a re-evaluation of the whole template, and the whole DOM of the component will be updated in all the places where changes were identified. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I accidentally noticed that when I change the styles of an element, its child elements, which show the result of some function, constantly call this function.
I wonder why this happens?
When the
translatePosition
value changes the methodgetSum
is calledcodesandbox
Beta Was this translation helpful? Give feedback.
All reactions