-
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.
Replies: 1 comment 1 reply
-
That's called prepending items. react-virtuoso makes this possible through the |
Beta Was this translation helpful? Give feedback.
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.