react-base-table
react-base-table copied to clipboard
unable to console first render values with onRowsRendered
Scrolling and printing values are fine but if I move on to another category in the sidebar and render new table from there. It's not printing values of it in the console.
onRowsRendered={extractDisplayedTask}
const extractDisplayedTask = (props) => {
const { startIndex, stopIndex } = props;
if (data.length > 0) {
console.log(data);
}
};
Not sure if it's a bug in react-window
, as a walk-around you can add key
to the table