-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Dynamically updating count seems to not trigger an update #363
Comments
Same error here |
@christiankaindl Do you have a hint about the correct way to fix this?
Where should we trigger the update? |
Yes, you need to re-calculate the virtual item range in virtual/packages/virtual-core/src/index.ts Line 286 in f4698d8
So call |
I don't know if that's intentional, but the PR in #366 was not merged yet |
Hi, any updates for this issue? :( I really don't like that we have to use a workaround. |
Fix this when these pulls go through. TanStack/virtual#363 TanStack/virtual#414
any update of this issue? |
Describe the bug
When
dataCount
changes from 0 to 1000, the list is not updated.Your minimal, reproducible example
https://codesandbox.io/s/react-virtual-only-one-item-is-rendered-at-first-bfoj5r?file=/src/main.tsx
Steps to reproduce
Checkout following sandbox:
https://codesandbox.io/s/react-virtual-only-one-item-is-rendered-at-first-bfoj5r?file=/src/main.tsx
At first glance only one row will be visible. This is because on first render
dataCount
is 0, but then it changes to 1000, but the list is not updated.Expected behavior
All items, which fit in the
tableContainer
, should be rendered.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
-OS Linux Ubuntu Browser: Firefox 103.0b9 (64-bit)
tanstack-virtual version
3.0.0-beta.14
TypeScript version
No response
Additional context
#353
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: