Using Material React Table V1 is there a prop perhaps within initialState to ensure that on page load of any table, ensure that no rows are selected.
I have something like this:
import { MaterialReactTable } from 'material-react-table';
<MaterialReactTable
key={refreshPage}
columns={myTableColumns}
data={myTableContent}
enableColumnResizing
enableFullScreenToggle={false}
enableHiding={false}
enablePinning={!isMobile}
enableExpanding
enableStickyHeader
enableRowSelection
/>
I basically want to be able to reset any row selections whenever the table is loaded on page load.
I tried to look out for something like:
table.toggleAllRowsSelected(false) on page load but I don't have access to table
Use the
initialStateprop combined with aselectedRowIdsproperty set to an empty object. This will effectively initialize the table with no rows selected.