petyosi / react-virtuoso

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

Set visible row dynamically #968

Closed dpqn1999 closed 1 year ago

dpqn1999 commented 1 year ago

I am doing a chat application with upload files function. Because each item will rerender after scrolling out of visible area, so I save these files into Redux store to prevent call upload API again whenever I scroll back to them. However I thinks because of the short rows appear (4-5 items), it may cause unsmoothly (beause I find them in store and check if it is sending or not). I think longer row appear maybe solve this issue. How can I set number of row will appear or Is there a better solution? Thank you!