vuejs / Discussion

Vue.js discussion
167 stars 17 forks source link

Prevent Vue to refresh DOM #223

Open micheleivani opened 9 years ago

micheleivani commented 9 years ago

I have two data properties and I need to update both before vue refresh the UI. So the current behavior is:

I need

the two property are dynamic so I can not use a computed property to handle the issue.

I hope I was clear and you can help me...

young-steveo commented 9 years ago

Vue defers DOM updates, so if you update both properties at the same time, there should only be a single DOM refresh.

yyx990803 commented 9 years ago

This is already the built-in behavior.

micheleivani commented 9 years ago

Thanks for your reply. I fixed the issue!