Skip to content

@tanstack/virtual-core@3.16.1

Choose a tag to compare

@github-actions github-actions released this 01 Jun 18:30
· 6 commits to main since this release
c33902f

Patch Changes

  • Eagerly adjust scrollOffset on prepend to prevent one-frame jump with anchorTo: 'end' (#1176)

    When items are prepended with anchorTo: 'end' and dynamic sizes, the virtualizer would compute the wrong visible range for one frame (using stale estimate-based positions) and then correct in the next frame via _willUpdate, producing a visible jump. This fix eagerly adjusts scrollOffset in setOptions during the render pass so calculateRange/getVirtualItems return the correct items immediately.