react-base-table icon indicating copy to clipboard operation
react-base-table copied to clipboard

unable to console first render values with onRowsRendered

Open abhirock1998 opened this issue 3 years ago • 1 comments

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);
    }
  };

abhirock1998 avatar Feb 21 '22 14:02 abhirock1998

Not sure if it's a bug in react-window, as a walk-around you can add key to the table

nihgwu avatar Apr 21 '22 22:04 nihgwu