@tanstack/react-virtual
3.14.26 · 3 Nov 2026MIT47.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @tanstack/react-virtual From 3.13.18 to 3.14.27
36 releases in betweenevery note read
Release by release
- Fixed
Fix virtualized lists freezing when hovering their elements in the browser's Elements panel with React DevTools' "Record why each component rendered while profiling" setting enabled, even without starting a profiling recording (#682). Preserve the original reducer dispatch during hook inspection so scrolling continues to render new rows.
- Fixed
Seed a horizontal window virtualizer's default
initialOffsetfromwindow.scrollXinstead ofwindow.scrollY, matchingobserveWindowOffsetand the Marko adapter. A horizontal list mounted on a page that was scrolled down no longer renders the columns at the vertical scroll position until the first scroll event.
- Fixed
3.14.15 – 3.14.2612 releases, nothing new or fixed in the notes
- Fixed
react-virtual: Position
directDomUpdatesrows that mount without the owner re-rendering
- Fixed
- Fixed
Skip
flushSyncfor the synchronous notify raised frommeasureElement. React callsmeasureElementfrom a ref callback, i.e. while it is committing, andflushSynccannot flush there — it warns in development instead. The commit phase already runs at discrete (sync) priority, so the update lands in the same lane and the same frame withoutflushSync. Notifies from every other path (ResizeObserver re-measures, scroll adjustments) still flush synchronously.
- Fixed
3.14.9 – 3.14.124 releases, nothing new or fixed in the notes
- Fixed
Fix a gap at the top of the list after an end-anchored prepend in
directDomUpdatesmode. The prepend grows the total size and bumpsscrollOffsetto the new bottom in the same pass, but the size container's height was written after_willUpdatesynced the scroll position — so the browser clamped thescrollTopwrite to the stale (shorter)scrollHeight, leaving whitespace at the top until the next scroll. The container is now grown before the scroll sync. Only affecteddirectDomUpdatesmode (React-rendered sizers receive their height during render).
- Fixed
3.14.4 – 3.14.74 releases, nothing new or fixed in the notes
- Fixed
Make
directDomUpdatesa no-op for direct DOM writes whencontainerRefis omitted. Previously the virtualizer still wrote item positions while never sizing the container (a broken half-state). Now omittingcontainerRefskips all direct writes while still skipping re-renders, letting consumers own the DOM updates themselves (e.g. inonChange).
- Fixed
35 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.