Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] useApiRef dissapeared/renamed between v4.0.0-alpha.20 & v4.0.0-alpha.20 #1190

Closed
2 tasks done
jamshally opened this issue Mar 7, 2021 · 1 comment
Closed
2 tasks done
Labels
component: data grid This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement

Comments

@jamshally
Copy link

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

It seems like a breaking change was introduced. useApiRef is no longer available. I note that there is a useGridApiRef which I assume can be used it its place. If this is the only different, then possibly just the documentation needs updating.

Context 🔦

Using the apiRef to set selected checkboxes in a grid

Your Environment 🌎

System:
OS: Windows 10 10.0.18363
Binaries:
Node: 15.4.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 7.0.15 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 88.0.4324.190
Edge: Spartan (44.18362.449.0)

Other Things

XGrid is a fantastic component. Keep up the good work

@jamshally jamshally added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 7, 2021
@jamshally jamshally changed the title useApiRef dissapeared between v4.0.0-alpha.20 & v4.0.0-alpha.20 useApiRef dissapeared/renamed between v4.0.0-alpha.20 & v4.0.0-alpha.20 Mar 7, 2021
@oliviertassinari oliviertassinari added support: question Community support but can be turned into an improvement and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 7, 2021
@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 7, 2021

@jamshally See the migration path in #1069. useApiRef -> useGridApiRef is indeed correct.

@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Mar 7, 2021
@oliviertassinari oliviertassinari changed the title useApiRef dissapeared/renamed between v4.0.0-alpha.20 & v4.0.0-alpha.20 [DataGrid] useApiRef dissapeared/renamed between v4.0.0-alpha.20 & v4.0.0-alpha.20 Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

2 participants