Skip to content

@tanstack/virtual-core@3.17.2

Choose a tag to compare

@github-actions github-actions released this 26 Jun 10:47
Immutable release. Only release title and notes can be modified.
d73a538

Patch Changes

  • #1208 b04f9ee - Skip redundant scroll events at unchanged offset

  • #1209 37be284 - Sync scrollOffset in applyScrollAdjustment so end-anchored streaming resize isn't lost to browser clamp

    With anchorTo: 'end' and a dynamically growing last item (token streaming), resizeItem writes the scroll adjustment to scrollTop before the consumer has grown the sizer, so the browser clamps the write and no scroll event fires. scrollOffset stayed stale, the next tick's wasAtEnd check failed, and the viewport drifted away from the end. This fix carries the intended target in scrollOffset (zeroing scrollAdjustments) the same way the prepend path in setOptions does, so the next getVirtualDistanceFromEnd() reads the post-adjustment position.