Skip to content
loading...

re: Svelte Needs A Virtual DOM VIEW POST

FULL DISCUSSION
 

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

 

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.

code of conduct - report abuse