How to get the underlying table
instance?
#23
-
I'd like to get a |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
So if you are already following this example and managing the All For example, Hmm I guess we could add a prop like Is the use case for some buttons/components outside the table? |
Beta Was this translation helpful? Give feedback.
-
btw. for version >= 0.26 I'm getting |
Beta Was this translation helpful? Give feedback.
-
@Janekk Hi, if you see this, I'm considering removing the onTableInstanceChange prop from Material React Table, as it can easily cause infinite renders when used the wrong way. I wanted to ask for your use case to make sure there was a working alternative for you. |
Beta Was this translation helpful? Give feedback.
-
There is now actually a new stable way to get the underlying table instance with the |
Beta Was this translation helpful? Give feedback.
-
Now in v2, this is trivial with the |
Beta Was this translation helpful? Give feedback.
Now in v2, this is trivial with the
useMaterialReactTableProps
https://www.material-react-table.com/migrating-to-v2#usematerialreacttable