I am following this example at official react-table
sandbox.
The rows are flashing in the example when I scroll and when you read online they propose to add style
to divs, i.e. https://github.com/bvaughn/react-virtualized/issues/1327. But the author already did add style:
const RenderRow = React.useCallback(
({
index,
style
}) => {
const row = rows[index]
prepareRow(row)
return ( <
div {
...row.getRowProps({
style, // Style added here.
})
}
className = "tr" >
{
row.cells.map(cell => {
return ( <
div {
...cell.getCellProps()
}
className = "td" > {
cell.render('Cell')
} <
/div>
)
})
} <
/div>
)
},
[prepareRow, rows]
)
But the rows are still flashing. Does anyone have any idea how to solve that flashing issue? Best Regards