DEV Community

Discussion on: Svelte Needs A Virtual DOM

Collapse
 
thgh profile image
Thomas Ghysels

Hi Vani, Svelte will check what changed in the next microtask and only then apply DOM updates. So Svelte will update the DOM just once, not four times. You could look at the generated code on svelte.dev/repl

Collapse
 
svaani profile image
Vani Shivanand • Edited

Yes, but the four times is used for the simplified explanation. It's about updating large chunks of data. May be I was not very clear in my explaination. I shall re-quote it with better examples or better words.