score:3

Accepted answer

You can use the tableRef and onSearchChanged prop

This seems to work for well:

const tableRef = React.useRef();
...
<MaterialTable
      tableRef={tableRef}
      onSearchChange={() => {
        console.log(tableRef.current.DataManager.filteredData.length);
      }}.....

You can also find the filtered data in the few other paths:

  1. tableRef.current.DataManager.data
  2. tableRef.current.state.data

Related Query

More Query from same tag