avatar
Lea Verou, PhD @lea.verou.me

Reactive templating and preserving DOM nodes (outside loops). I literally mentioned lit-html and React (Preact has the same issue AFAIK) in the 3rd post.

aug 23, 2025, 3:23 pm • 1 0

Replies

avatar
James @43081j.com

you did. seems strange though since lit doesn't nuke the dom when props change. it updates attributes, text nodes, etc individually

aug 23, 2025, 3:50 pm • 0 0 • view
avatar
Lea Verou, PhD @lea.verou.me

Yes, same for (p)react, Vue etc. The difference is it's on nodes *they* created, not nodes that were already there. So if anything else depends on nodes that were already there, you run into timing issues.

aug 23, 2025, 4:06 pm • 0 0 • view