[data grid] apiRef
prop and the return type of useGridApiRef() does not match in Pro and Premium versions of the grid
#16116
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
plan: Premium
Impact at least one Premium user
plan: Pro
Impact at least one Pro user
typescript
Steps to reproduce
Steps:
DataGridPro
instead ofDataGrid
and v7.23.6 ofmui-x
https://mui.com/x/react-data-grid/api-object/#outside-the-data-gridType 'RefObject<GridApiPro>' is not assignable to type 'MutableRefObject<GridApiPro>'.
errorAfter upgrading to v7.23.6, it appears the
DataGridPro
props were not updated while theDataGrid
props were. See the following: v7.23.5...v7.23.6#diff-18991c189d0e0b75b030b0889cfbee75905b8b4c19361d0a4b975a1a3ac26945L418Current behavior
Typescript fails to compile when using
useGridApiRef()
withDataGridPro
Expected behavior
No response
Context
No response
Your environment
No response
Search keywords: data grid pro
The text was updated successfully, but these errors were encountered: