-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[BUG] MUI useDataGrid's dataGridProps type not compatible with DataGridPro #5997
Comments
Downgrading |
Hey @jamesdh sorry for the issue! I've investigated this a bit. Looks like this is just a type issue and caused by a faulty type from our We can update the return type to reflect our implementation (which still satisfies the Here's the part defining the return type of the hook: refine/packages/mui/src/hooks/useDataGrid/index.ts Lines 33 to 53 in 77df5be
Instead of inferring it directly from the onFilterModelChange: (model: GridFilterModel) => void; If you want to contribute to Refine and help us fix the issue, check out the Contributing Guide to get started! |
@bhargavpshah98 absolutely! Feel free to submit a PR for it! |
Hey @bhargavpshah98, assigned the issue! I think my comment above will be enough to get the task done but let us know if you need any help! 🙏 @jamesdh, did you had a chance to check my comment above about the solution, do you need any workaround for now, or does just casting the proper types resolves the issue in your codebase? 🙏 |
Hello, @aliemir , Thank you for assigning the task. Yeah, that sounds good. I will reach out if I need any help or guidance. |
@bhargavpshah98 the easiest way is to create a draft PR and ask for feedback on your changes directly. |
Hello @aliemir. Is this issue still open and available to pick up? |
Hey @Sergio16T, issue is still open and available 🚀 I can assign it to you if you're willing to work on it, let me know if any help is needed 🙏 |
@aliemir Thank you! That sounds good, Please assign it to me. |
@aliemir PR is ready for review. |
Describe the bug
Upon trying to upgrade from MUI DataGrid to DataGridPro, I'm getting the following TS errors:
Steps To Reproduce
Create an extremely basic component w/ useDataGrid:
Expected behavior
The
dataGridProps
type returned fromuseDataGrid
will also be compatible withDataGridPro
.Packages
Additional Context
No response
The text was updated successfully, but these errors were encountered: