You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from version 3.13.3, the behavior of virtualizer.getTotalSize() has changed. When using multiple lanes (i.e., lanes > 1) and the item count is 1, getTotalSize() now returns 0.
This did not happen in 3.13.2, where the total size of a single item was calculated and returned correctly.
If this change in behavior is intentional, please let me know.
change VERSION(main.tsx#L8) to "3.13.3" and observe that the same setup returns the expected item size.
Expected behavior
with count === 1 and lanes > 1, getTotalSize() should return the size of the single item, not 0.
How often does this bug happen?
Every time
Screenshots or Videos
2025-03-24.2.11.38.mov
Platform
OS: macOS 13.3.1 22E261 arm64
Browser: Chrome 134.0.6998.89 (arm64)
tanstack-virtual version
v3.13.3
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
The text was updated successfully, but these errors were encountered:
Describe the bug
Starting from version
3.13.3
, the behavior ofvirtualizer.getTotalSize()
has changed. When using multiplelanes
(i.e.,lanes > 1
) and the itemcount
is1
,getTotalSize()
now returns0
.This did not happen in
3.13.2
, where the total size of a single item was calculated and returned correctly.If this change in behavior is intentional, please let me know.
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-virtual-4zlr1xau
Steps to reproduce
npm install && npm run start
@tanstack/react-virtual
version: 3.13.2VERSION
(main.tsx#L8
) to"3.13.3"
and observe that the same setup returns the expected item size.Expected behavior
with
count === 1
andlanes > 1
,getTotalSize()
should return the size of the single item, not0
.How often does this bug happen?
Every time
Screenshots or Videos
2025-03-24.2.11.38.mov
Platform
tanstack-virtual version
v3.13.3
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: