Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miss item when set lanes to 4 and count is 36? #573

Closed
2 tasks done
oloshe opened this issue Aug 14, 2023 · 2 comments
Closed
2 tasks done

miss item when set lanes to 4 and count is 36? #573

oloshe opened this issue Aug 14, 2023 · 2 comments

Comments

@oloshe
Copy link

oloshe commented Aug 14, 2023

Describe the bug

when lanes and count are set to some specific numbers, it may miss some items when displayed.
such as lanes = 4, count = 36
or lanes = 6, count = 36.

Your minimal, reproducible example

https://codesandbox.io/s/hopeful-mcclintock-87sct9?file=/src/App.js:132-134

Steps to reproduce

  1. modify file examples/react/src/main.tsx line 8:
const rows = new Array(36)
  1. run yarn start
  2. see the example variable/Masonry (vertical)

Expected behavior

show all items

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

Windows 11

tanstack-virtual version

3.0.0-beta.54

TypeScript version

5.1.6

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.
@oloshe
Copy link
Author

oloshe commented Aug 14, 2023

It's ok when set overscan equal to 5

@DominikSerafin
Copy link

Might be related: #665 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants