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

7 hours ago

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.

Don't miss a new virtual release

NewReleases is sending notifications on new releases.