[DataGrid] The api
property passed on event publication / callbacks should always contain the apiRef.current
, never apiRef
#2189
Labels
breaking change
component: data grid
This is the name of the generic UI component, not the React module!
Milestone
Follow up #2187
Summary 💡
The
api
property passed on event publication / callbacks should always contain theapiRef.current
.Examples 🌈
Currently, depending on which callback we are looking at, the
api
key can contain either theapiRef
or theapiRef.current
.Sometimes, we give it
apiRef
Sometimes, we give it
apiRef.current
I'm in favor of doing it before beta because if we want to unify (which would be interesting I think), then it's a breaking change.
The text was updated successfully, but these errors were encountered: