@tanstack/virtual-core
3.19.11 · 3 Nov 2026MIT56.2M / weekRepositoryHomepagenpmAtom feed
Upgrading @tanstack/virtual-core From 3.14.0 to 3.15.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
iOS Safari momentum-scroll handling. Writing
scrollTopwhile a finger is on the screen, during momentum decay, or while the page is in the elastic-overscroll bounce zone all cancel the in-flight scroll in iOS WebKit. The virtualizer previously had no iOS-specific handling, which manifested as the recurring "scroll abruptly stops when content above resizes" complaints on Safari mobile. - New
Skip the scroll-position adjustment while the user is scrolling backward by default. When an above-viewport item resizes during backward scroll (images load, content reflows, etc.) the prior behavior wrote
scrollTopto keep the visible window stable — but on backward scroll that write fights the user's direction and produces visible "items jump up while I scroll up" jank. This was the largest single complaint cluster in the issue tracker (multiple recurring threads spanning years; users had independently rediscovered the same workaround at least five times). - New
Add
takeSnapshot()instance method for scroll-restoration round-trips. Returns the currently-measured items as plainVirtualItemobjects; pair with the currentscrollOffsetto persist scroll position across remounts (route navigation, list-view modals, etc.). The result feeds back through the existinginitialMeasurementsCacheoption: - New
Mount-time, measurement, and memory rewrite for huge lists. The hot path through
getMeasurements()no longer allocates aVirtualItemobject per index for single-lane lists; instead it fills aFloat64Arrayof start/size pairs and materializesVirtualItemobjects lazily through aProxy-backed view when consumers index into them. Internal hot paths (calculateRange,getVirtualItemForOffset,getTotalSize,resizeItem) read directly from the typed-array storage to avoid the Proxy.
- New
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.