score:0

i had a similar issue, i fixed it by making sure that the measure method is called after the row contents are fully loaded.

<cellmeasurer
cache={this._cache}
columnindex={0}
key={datakey}
parent={parent}
rowindex={rowindex}>
{({measure, registerchild}) => (
    <detalles rowdata={rowdata} color={color} measure={measure}/>
)}
</cellmeasurer>

function detalles(props) {
return (
    <div
    classname={styles.tablecolumn}
    style={{
        display: "flex",
        flexdirection: "column",
        backgroundcolor: props.color
    }}>
    {
        props.rowdata.detalles.map((q) => {                    
            return <div>{q}</div>
        })
    }
    </div>
);
useeffect(() => {   
    props.measure();
});
}

Related Query

More Query from same tag