T
TanStack3y ago
equal-aqua

How to use v3 with HTML table and infinite scroll?

Hi! I found the following post (https://discord.com/channels/719702312431386674/1026081427583930429) asking a similar question, but with v2 of virtual library. Looks like with virtual I need 3 types of elements: 1. a window 2. an element that has the height of all items (rows) 3. individual items (rows) With a table, I've got table, tbody and trs. tbody is the element that keeps all rows, but it should also act as a window. Is the only solution to add this fake offset at the beginning to make up for the height of the header row? In our case the header row also changes depending on the screen size (on small screens we show only one column and replace table header with tabs), which probably makes it even more complicated.
2 Replies
afraid-scarlet
afraid-scarlet3y ago
equal-aqua
equal-aquaOP3y ago
Thanks!

Did you find this page helpful?