Closed Jesus-Gonzalez closed 1 month ago
I'm experiencing this too. Judging from other issues posted here I believe we might be meant to use the message list branch to handle reverse list display properly. I'm trying to get that to work now but am running into some issues
Thanks @pribeh - looking into message list component.
I think I’ll opt to create a list by myself without virtualization, since I don’t need it for my use case.
Anyway it will be interesting to see what others can suggest or comment.
Thanks again, Jesus
@pribeh if you're evaluating the message list, you can contact me over email. Happy to help you, given it's a commercial license.
The original version of react-virtuoso exposes a firstItemIndex
prop for prepending items, but the API is not great. I strongly recommend the message list for that purpose.
Describe the bug
The scroll position is not maintained after adding an element dynamically to the list.
Reproduction
https://codesandbox.io/p/sandbox/fwrtj2
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The list scroller should maintain its position.
Screenshots
recording.webm
Desktop (please complete the following information):