bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.31k stars 3.05k forks source link

Row heights do not update after using placeholder #1697

Closed HarryBrooks closed 1 month ago

HarryBrooks commented 3 years ago

Hi,

I am using the List component with autosizer, cell measurer and cache and all works brilliantly (thanks for developing this, its amazing!).

However, my issue arises when I use a placeholder due to the amount of data I'm loading in. After the placeholder has been used, I need to update the height of the row in the list, but I can't find the best place to clear the cache (for a row or the entire list). It generally ends with an infinite loop. I suspect this is a lack of understand on my part, but would you be able to advise me on where I should be calling cache.clear() or cache.clearAll(), as I feel that would solve my issue.

Thanks!

AaronMcCloskey commented 2 years ago

Also having this issue, did you find a solution?