We are using react-table and we would like to collapse/expand the next available row in the react-table. For this, we are using react-table toggleRowExpanded passing row-id as the first param. This function isn't working as expected.
toggleRowExpanded([id], true);
Any help is appreciated.