petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.13k stars 299 forks source link

[BUG] Prepending docs not there anymore #1056

Closed RobinGiel closed 4 months ago

RobinGiel commented 5 months ago

Hi,

just wanted to point out that the docs for prepending is not there anymore.

https://virtuoso.dev/prepend-items/

petyosi commented 4 months ago

The prepending items was a very awkward API to begin with, as it involved keeping track of firstItemIndex, and then updating two props simultaneously.

I've just published a new component - Virtuoso Message List, that's targeting the specifics of reverse scrolling through an imperative API. Check the docs above.