function InstanceTable() {
const tableRef = React.createRef();
const reloadTableData = () => {
tableRef.current.onQueryChange();
};
return (
<MaterialTable
title="Instance"
tableRef={tableRef}
...
/>
}
When reloadTableData is called, tableRef.current is null.
Same issue here!
workaround:
Declare the ref as global, outside your main function.

If you don't want a global ref: replace const tableRef = React.createRef(); with const tableRef = React.useRef(); instead. Worked for me.
Most helpful comment
workaround:
Declare the ref as global, outside your main function.
