Given a react-virtualized List with variable content in each row the DOM height needs to be calculated by a rowHeight
function - however since that gets called before the row is rendered I am unsure how to actually get the row height.
The examples given for dynamic List row height basically go off a predefined number in the list item's props which doesn't help.
What I think I want to do is render the row on the page at a default height and then get the overflow height on the DOM and set that as the row height. How can I hook into an afterRowRender
function or something like that? I imagine performance would suffer so maybe there is a better way of doing this that I am missing.