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
Is your feature request related to a problem? Please describe.
Instead of requiring to scroll to last item in the index each time the content changes, it would be nice if there was a built in method which would automatically stick to the bottom of the virtualised scroll section as content changes.
Describe the solution you'd like
Either a method / prop on the component stickToBottom or an api method that can be toggled.
Describe alternatives you've considered
useEffect on data length and scroll to last in index whenever it changes.
The text was updated successfully, but these errors were encountered:
There are many ways to do this poorly, but for something "flicker free" you need to directly access the scrolling element (parent of the Virtualizer. The scrollRef).
Watch for changes to the scrolling element with a MutationObserver then set el.scrollTop = el.scrollHeight.
Use virtua and react APIs sparingly, any delay (async etc) will introduce flickering.
Is your feature request related to a problem? Please describe.
Instead of requiring to scroll to last item in the index each time the content changes, it would be nice if there was a built in method which would automatically stick to the bottom of the virtualised scroll section as content changes.
Describe the solution you'd like
Either a method / prop on the component
stickToBottom
or an api method that can be toggled.Describe alternatives you've considered
useEffect on data length and scroll to last in index whenever it changes.
The text was updated successfully, but these errors were encountered: