Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • May I ask how this solves the item height problem? The point of the virtual scroll was to render the items only as they are shown in the viewport, and for that reason to be able to calculate that requires a fixed item height. Your solution seems to be about loading the next items, not solving the variable height issue.
    – dormant
    Commented Dec 28, 2022 at 21:03
  • 1
    One issue with dynamic heights, or in my case expandable rows, is that scrolling will sometimes load items prematurely or not at all because the trigger points are inconsistent. This work around will provide a more reliable experience for when to load the next batch of items so that the user is never stuck at the bottom of the scrollable area. However, it does not address the issue of only rendering visible items. Commented Jan 11, 2023 at 15:04