Skip to content

Bump virtual-core to 3.19.11 and remove the getOffsetForIndex stopgap #7

Closed

Description

@Kebechet

Follow-up to #6.

When

Once @tanstack/virtual-core@3.19.11 is on npm. It contains the fix for getOffsetForIndex answering from stale measurements (TanStack/virtual#1363, issue TanStack/virtual#1361). The release is pending in TanStack/virtual#1364.

Bump

  • Replace wwwroot/tanstack-virtual-core.js with the jsDelivr +esm bundle of 3.19.11, and update the README's provenance table (version, SHA-256) and the "Coverage vs." heading.
  • Re-verify the private surface the interop uses: _willUpdate, _didMount, itemSizeCache, itemSizeCacheVersion, pendingMin.
  • Read the 3.19.9, 3.19.10 and 3.19.11 changelogs for anything else the interop depends on.

Remove the getOffsetForIndex stopgap

  • The refreshMeasurements() call in getOffsetForIndex in adaptive-virtualize-interop.js.
  • The one in scrollToIndex: 3.19.11 also aims the first scrollToIndex write from the current measurements.
  • Its row in the README's stopgap table.

Keep the other refreshMeasurements() calls (takeSnapshot, getSnapshot, before resizeItem). They cover this wrapper's own direct writes to itemSizeCache, which the upstream fix does not.

GetOffsetForIndex_RightAfterARowAboveChanges_UsesTheSizesTheVirtualizerUses has to stay green with the refresh removed.

Also on this bump

Activity

  1. Kebechet commented on Nov 3, 2026

    @Kebechet
    OwnerAuthor

    Done in #8, released as https://github.com/Kebechet/Blazor.TanStack.VirtualCore/releases/tag/v3.19.11 and listed on nuget.org as 3.19.11:

    One change from the plan above: the RTL stopgap went too. TanStack/virtual#1291 was merged on 2026-11-03 and shipped in 3.19.11, so keeping the negation would have negated the write twice. IsRtl_ScrollToIndex_BringsTheItemOnScreen passes on 3.19.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions