petyosi / react-virtuoso

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

How to provide item height for each item? #354

Closed gajus closed 3 years ago

gajus commented 3 years ago

I've noticed that Virtuose performance is significantly better when I provide fixedItemHeight.

While my items aren't fixed height, I can calculate (approximate) their height based on data of each item.

Is there a way to make Virtuose ask me for item size instead of it using DOM methods to calculate it?

gajus commented 3 years ago

Duplicate of https://github.com/petyosi/react-virtuoso/issues/169