loading code fetching the highlighted snippet
Both boxes have layout and re-render constantly (their color cycles). The left box re-measures on every render; the right box passes layoutDependency={dep}, so it only re-measures when dep changes — watch its counter stay flat.
layout element often.layoutDependency={dep}, so its measure counter
only moves when dep changes on Reflow.0 measures
0 measures
Rows are layout="position" in a keyed {#each} sorted by activity. Gated on a per-row field, only the bumped row animates and the rows it displaces jump — upstream parity. Gate on the row index and every moved row slides.
layoutDependency={row.ts} only that row's dependency changed, so only it FLIPs — the displaced rows jump, exactly
as upstream MeasureLayout behaves.layoutDependency={i}: the index changes for every row
whose slot changed, so every moved row animates and untouched rows stay gated.layoutDependency and every reorder animates
every row.layoutDependency={row.ts} — bump a row: it slides up, the rows it
displaces jump (their dependency didn't change).