mui-datatables
mui-datatables copied to clipboard
setSelectedRows on customToolbarSelect
Issue: Apparently using the setSelectedRows on customToolbarSelect causes an infinite rerender loop
I created a table component to avoid redundant code.
The photo above is what I have done. I need the id of the row that is selected through the checkbox.
in your table options, use onRowSelectionChange(currentRowsSelected, allRowsSelected, rowsSelected?) { console.log(rowsSelected); },