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] Remove remaining props from legacy editing API #7381

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

m4theushw
Copy link
Member

@m4theushw m4theushw commented Jan 3, 2023

In #6016 I forgot to remove the editRowsModel and onEditRowsModelChange props. At that time the migration guide wasn't updated so I'm also updating it to include the breaking changes from #6016 here. There's no need to update the CHANGELOG because they were already released.

@m4theushw m4theushw added the component: data grid This is the name of the generic UI component, not the React module! label Jan 3, 2023
@m4theushw m4theushw force-pushed the remove-legacy-editing-props branch from c109fae to 4c80df9 Compare January 3, 2023 14:59
@mui-bot
Copy link

mui-bot commented Jan 3, 2023

Messages
📖 Netlify deploy preview: https://deploy-preview-7381--material-ui-x.netlify.app/

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 622.3 916.4 647 744.86 132.27
Sort 100k rows ms 588.1 995.3 836.3 839.52 140.911
Select 100k rows ms 208.4 392.2 296.9 284.84 65.228
Deselect 100k rows ms 139.4 280.3 163 188.4 52.126

Generated by 🚫 dangerJS against f14e38f

@m4theushw m4theushw requested a review from cherniavskii January 3, 2023 23:02
- Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
- Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
- Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
- Use the [`cellModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning that the GridEditRowsModel type was removed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I think this doesn't need to be explicit because all entry points that require GridEditRowsModel were removed (props and API methods), but I included it in the migration guide.

@m4theushw m4theushw merged commit 35789da into mui:next Jan 4, 2023
@m4theushw m4theushw deleted the remove-legacy-editing-props branch January 4, 2023 23:13
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!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants