vuejs/vue

Render function called whenever a computed value's dependency is updated, though the value didn't change

Closed this issue ยท 2 comments

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.

#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. ๐Ÿ˜„