@tanstack/svelte-virtual@3.13.14
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/solid-virtual@3.13.14
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/virtual-core@3.13.14
-
Fix: Correct lane assignments when lane count changes dynamically (#1095)
Fixed a critical bug where changing the number of lanes dynamically would cause layout breakage with incorrect lane assignments. When the lane count changed (e.g., from 3 to 2 columns in a responsive masonry layout), some virtual items would retain their old lane numbers, causing out-of-bounds errors and broken layouts.
Root Cause: After clearing measurements cache on lane change, the virtualizer was incorrectly restoring data from
initialMeasurementsCache, which contained stale lane assignments from the previous lane count.Fix: Skip
initialMeasurementsCacherestoration during lane transitions by checking thelanesSettlingflag. This ensures all measurements are recalculated with correct lane assignments for the new lane count.Before:
// With lanes = 2 virtualItems.forEach((item) => { columns[item.lane].push(item) // ❌ Error: item.lane could be 3 })
After:
// With lanes = 2 virtualItems.forEach((item) => { columns[item.lane].push(item) // ✅ item.lane is always 0 or 1 })
This fix is essential for responsive masonry layouts where column count changes based on viewport width. No performance impact as it only affects the lane change transition path.
@tanstack/react-virtual@3.13.14
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/lit-virtual@3.13.15
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/angular-virtual@4.0.2
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/vue-virtual@3.13.14
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
v1.145.3
Version 1.145.3 - 12/30/25, 5:42 PM
- prerendering (#6256) (062faf4) by Manuel Schiller
- (5438653) by Birk Skyum
- @tanstack/start-server-core@1.145.3
- @tanstack/start-plugin-core@1.145.3
- @tanstack/solid-start@1.145.3
- @tanstack/solid-start-server@1.145.3
- @tanstack/vue-start@1.145.3
- @tanstack/vue-start-server@1.145.3
- @tanstack/react-start@1.145.3
- @tanstack/react-start-server@1.145.3
- @tanstack/start-static-server-functions@1.145.3
@tanstack/solid-query@5.90.19
- Updated dependencies [
7f47906]:- @tanstack/query-core@5.90.16