Open leadstar116 opened 1 year ago
May be VariableSizeList ( https://react-window.vercel.app/#/examples/list/variable-size ) will help you?
@viktor-ulyankin I am not sure I can get the height of the item without rendering...
this is why you render them and in useLayoutEffects you actually get the window.getclientrect.. and get the real sizes and that is, you set some basic width and height for start and then update it.
I see that I need to pass
itemSize
prop which makes all items have the same height. How can I manage if all items are having different heights? Is there any way to handle it?