hyperfiddle

Dustin Getz (Hyperfiddle) 2025-02-04T00:01:28.949399Z

pushed electric snapshot: • bugfix in how electric-dom3 interprets diffs. Watch out for any weirdness, this change has passed our testing this week but am still watching for regression • minor breaking: dom3/Await-element now returns nil when no elements were found, not e/amb

🙏 5
🙏🏻 1
Dustin Getz (Hyperfiddle) 2025-02-04T00:06:09.547989Z

to elaborate about the dom3 diff interpreting. The bug it fixed was: in certain circumstances, we would remove and immediately reinsert the same dom element, and because it was synchronous we considered that to be a noop. But in fact it caused browser layout to recompute. This caused layout jank in certain very heavy/complex demos using virtual scroll. It was also likely responsible for a subtle virtual scroll bug reported last month, where the scroll handle, as you drag it down with a mouse, would jitter a bit.

👍 3