petyosi / react-virtuoso

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

How to specify a row in Virtuoso List so that it does not unload when scrolling #1072

Closed linxianxi closed 4 months ago

linxianxi commented 4 months ago

How to specify a row in Virtuoso List so that it does not unload when scrolling? like https://github.com/clauderic/react-tiny-virtual-list?tab=readme-ov-file#prop-types stickyIndices prop

like this? https://github.com/petyosi/react-virtuoso/issues/2

petyosi commented 4 months ago

The grouped virtuoso does this.

linxianxi commented 4 months ago

@petyosi How to make it sticky after scrolling outside the area? Scroll up or down both