-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
Scenario:
- Page displaying a list of live results.
- New results are added to the list, with the oldest at the top of the list and newest at the bottom.
When the page loads, we want to show the newest results. That means the scroll position is the bottom of the container. There isn't a built-in feature to do that in Virtualize, so it means loading initial data, virtualize renders the contents with spacers, then using JS interop to scroll to the bottom of the list. That then loads and renders content again.
A similar problem exists when data is added to the list after the page has loaded. Virtualize loads data and renders, JS interop runs to scroll to the bottom of the list and Virtualize loads data and renders again. This is inefficient and it looks like it causes content to flicker as it is added to the list.
Describe the solution you'd like
There should be a way to say to Virtualize that you want to view the end of the list, both when loading and when adding new data. It should be efficent and there isn't flickers of content when loading/adding data.
Additional context
No response