-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render function called whenever a computed value's dependency is updated, though the value didn't change #7767
Comments
#featureNotBug 😅 computed calculate is called after getter has been accessed (in render function) |
Ouch, I was debugging for half a day why suddenly I've got some stuttering animations lately. 😄 |
yyx990803
added a commit
that referenced
this issue
Mar 13, 2018
This was referenced Nov 5, 2018
f2009
pushed a commit
to f2009/vue
that referenced
this issue
Jan 25, 2019
aJean
pushed a commit
to aJean/vue
that referenced
this issue
Aug 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.13
Reproduction link
https://jsfiddle.net/72gzmayL/
Steps to reproduce
Open the jsfiddle link, see console output.
What is expected?
Render function isn't called.
What is actually happening?
Render function is called even when nothing is changed.
This creates unnecessary render function calls, which leads to performance issues when the component is complex and render function calls aren't cheap.
The text was updated successfully, but these errors were encountered: