material-table icon indicating copy to clipboard operation
material-table copied to clipboard

this.tableRef undefined

Open theodore-koch opened this issue 7 years ago • 2 comments

Following the example here https://material-table.com/#/docs/features/remote-data , however this.tableRef is always undefined when clicking the action?

theodore-koch avatar Jul 25 '19 14:07 theodore-koch

Can you post your code?

nataliepatton13 avatar Jul 25 '19 16:07 nataliepatton13

I figured it out, I had to call a function outside the MaterialTable component then was able to access this.tableRef.current in that function

theodore-koch avatar Jul 25 '19 18:07 theodore-koch