github TanStack/virtual @tanstack/virtual-core@3.19.17

10 hours ago

Patch Changes

  • #1423 264aba1 - Keep observing an element that measureElement receives under a new key. When rendered rows were reordered and a DOM node came back with another row's index (or getItemKey returned 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 the ResizeObserver reports its size for that key.

  • #1417 181257e - Read a row's index attribute in a microtask when measureElement gets a row that is not attached yet and has no index. Solid calls the ref before its render effects set data-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 - Fix resizeItem() called after measure() 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.

Don't miss a new virtual release

NewReleases is sending notifications on new releases.