ripple@0.3.123
·
27 commits
to main
since this release
Patch Changes
- #1432
8b5abd7
Thanks @chenzylab! - Fix insertion order when a
keyed or ref-based@forinserts multiple new items in the middle of the list.
The pure-insert reconciliation path resolved the DOM anchor per new item by
indexing the old blocks with a new-list index, so the anchor drifted into the
matched suffix and later items landed after it (e.g.[A, C, D]→
[A, B1, B2, C, D]rendered asA, B1, C, B2, D). The anchor is now resolved
once, at the start of the matched suffix, and reused for the whole run of
inserts.