-
Hello I'm building a feed component to which new items are added on top. Right now I struggle with scroll position when new item arrives. When user scrolled a bit down I want to keep the same item visible after new items were added. After reading through docs this remind me of default behaviour for 'followOutput' but reversed. Is there something like this? Thank you in advance for any tips |
Beta Was this translation helpful? Give feedback.
Answered by
petyosi
Apr 28, 2024
Replies: 1 comment 1 reply
-
That's called prepending items. react-virtuoso makes this possible through the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
misha-erm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's called prepending items. react-virtuoso makes this possible through the
firstItemIndex
prop, which is kind of convoluted and causes complications. The message list component makes that much easier.