Repository navigation
@tanstack/virtual-core@3.19.17
Patch Changes
-
#1423
264aba1- Keep observing an element thatmeasureElementreceives under a new key. When rendered rows were reordered and a DOM node came back with another row's index (orgetItemKeyreturned a different key for its index), the node could be unobserved while still mounted, so later size changes never reached the virtualizer and its key kept the other row's size. The node is now moved to its new key and re-observed, so theResizeObserverreports its size for that key. -
#1417
181257e- Read a row's index attribute in a microtask whenmeasureElementgets a row that is not attached yet and has no index. Solid calls the ref before its render effects setdata-index, so the row was skipped with a "Missing attribute" warning and never measured. The warning is still logged when the attribute is missing after that. -
#1420
ff96797- FixresizeItem()called aftermeasure()and before the next layout read: it now measures against the cleared layout, so rows above it no longer keep their old sizes and a size equal to the cleared one is no longer dropped.