News for hackers. Stuff that matters.
Re:Introduction to Svelte by Glench on Thursday August 15, 2019 @09:17AM (#20704885)
To actually answer your question, no, $$invalidate doesn't mean all the DOM nodes get recreated. You can see that in this example: https://svelte.dev/repl/d3898004792c467d8eacefb054d8263a?ver...

Also, Svelte has keys like React which can help out. See this example in the tutorial for that: https://svelte.dev/tutorial/keyed-each-blocks

Re:Introduction to Svelte by daoxid on Thursday August 15, 2019 @09:37AM (#20705060)
Thanks! For some reason it didn't occur to me that Svelte could just compare the new array to the old array (if this is how it's implemented).