Repository navigation
Bump tanstack virtual to 3.14.26 and add the new upstream PR to the patch - #35743
Merged
Merged
Conversation
1 task done
7 of 9 tasks
langleyd
force-pushed
the
fix/new-timeline-tanstack-bump-resize-reports
branch
from
November 9, 2026 16:19
2e4ed73 to
457b5ef
Compare
TanStack skips the scroll correction for a row that changes height again after it was measured while the user scrolls up (TanStack/virtual#1168), so an image or link preview finishing loading above the viewport shoved the rows on screen. Our virtual-core patch removed that skip; use the escape hatch TanStack provides for it instead, keeping the rest of its default rule.
Rebases our virtual-core patch. Two of its hunks are covered upstream now (a resize while a scroll is being written builds on the written position) and the backward-scroll one is replaced by TanStack's escape hatch in the view, so they are dropped. The two that remain: isValidAnchorItem, and keeping the end in view when the scroller shrinks (TanStack/virtual#1298, with the review changes).
When the timeline gets taller the browser moves scrollTop and fires the scroll event before TanStack's ResizeObserver has seen the new height, so an update could pair the new position with the old height and report leaving the bottom (#35449). Our virtual-core patch now reads the size along with the scroll event (TanStack/virtual#1378), and a shrink seen that way still keeps the end in view. The test is #35727's, which passes without that PR's hold in the view.
langleyd
force-pushed
the
fix/new-timeline-tanstack-bump-resize-reports
branch
2 times, most recently
from
November 9, 2026 16:52
457b5ef to
e610814
Compare
langleyd
marked this pull request as ready for review
November 9, 2026 19:28
dbkr
approved these changes
Nov 12, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This bumps TanStack Virtual to the latest (react-virtual 3.14.26 / virtual-core 3.19.11) and fixes the at-bottom flake (#35449) in our patch, rather than in the view(supersedes #35727).
Commit 1 is the bump. The patch had to be redone against 3.19.11.
Two previous edits are gone as they have been fixed upstream by TanStack (it fixed a resize landing just after a programmatic scroll, which used to be compensated against the old position).
Three fixes are kept:
Commit 2 is the flake(actually an app issue, but not one that causes a user facing issue I'm aware of, more just a brief data inconsistency). I have now opened this as a PR to fix it upstream(TanStack/virtual#1378). I have moved #35727’s test here.
Commit 3 is code that i had in the patch that compensates for items above the fold changing height when being remeasured(async content changing the height, like an image or url summary loading). TanStack/virtual#1227 clarifies we should be using
shouldAdjustScrollPositionOnItemSizeChangeas the escape hatch for that. So moving it out of the patch.Fixes #35449.