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

stickyIndices with array that does not start from '0' (eg: stickyIndices={[1]}) causes missing rows #92

Open
YuanboXue-Amber opened this issue Nov 9, 2020 · 0 comments

Comments

@YuanboXue-Amber
Copy link

Hello, I was trying out this library v2.2.0, with the stickyIndices feature.

When I tried stickyIndices=[0, 5, 10] everything works nicely.
But when I tried an array that does not start with '0', for example stickyIndices=[1], I get results that look like below:

YjjVbobAoo

Here's a codesandbox for repro: https://codesandbox.io/s/react-tiny-virtual-list-sticky-issue-4hgjo

BTW just want to say thanks for creating this library. The code is very nice to read and helped me a lot in understanding virtualization 👍

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

1 participant