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
Obeserved : In the above code with console.log(), items.length and count are different (items.length is 8 whereas count is 21) for some reason when props change but the totalSize however is computed for 21 components (more than required) due to which there is a empty section on the page.
Expected: Both items.length and count should be the same. (Please correct me if I am wrong in assuming this)
Regards,
Abhishek
Your minimal, reproducible example
NA
Steps to reproduce
NA
Expected behavior
Obeserved : In the above code with console.log(), items.length and count are different (items.length is 8 whereas count is 21) for some reason when props change but the totalSize however is computed for 21 components (more than required) due to which there is a empty section on the page.
Expected: Both items.length and count should be the same. (Please correct me if I am wrong in assuming this)
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Chrome, Mozilla
tanstack-virtual version
3.0.0-beta.54
TypeScript version
4.9.5
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
On Re-Render the number returned by virtualizer.getVirtualItems() is different than the number provided during initialisation of the virtualiser.
Initialising Virtualiser
Obeserved : In the above code with console.log(), items.length and count are different (items.length is 8 whereas count is 21) for some reason when props change but the totalSize however is computed for 21 components (more than required) due to which there is a empty section on the page.
Expected: Both items.length and count should be the same. (Please correct me if I am wrong in assuming this)
Regards,
Abhishek
Your minimal, reproducible example
NA
Steps to reproduce
NA
Expected behavior
Obeserved : In the above code with console.log(), items.length and count are different (items.length is 8 whereas count is 21) for some reason when props change but the totalSize however is computed for 21 components (more than required) due to which there is a empty section on the page.
Expected: Both items.length and count should be the same. (Please correct me if I am wrong in assuming this)
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Chrome, Mozilla
tanstack-virtual version
3.0.0-beta.54
TypeScript version
4.9.5
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: