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] Rename ErrorOverlay to GridErrorOverlay #6946

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

MBilalShafi
Copy link
Member

Closes #5609

@MBilalShafi MBilalShafi added breaking change component: data grid This is the name of the generic UI component, not the React module! v6.x labels Nov 21, 2022
@MBilalShafi MBilalShafi self-assigned this Nov 21, 2022
@mui-bot
Copy link

mui-bot commented Nov 21, 2022

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

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 614.9 936.9 764.7 775.76 137.484
Sort 100k rows ms 645.1 1,048.9 810.5 848.6 131.492
Select 100k rows ms 223.8 392 288.5 296.44 54.077
Deselect 100k rows ms 135.1 343.4 178.8 216.32 77.781

Generated by 🚫 dangerJS against 98472f8

export const ErrorOverlay = React.forwardRef<HTMLDivElement, ErrorOverlayProps>(
function ErrorOverlay(props: ErrorOverlayProps, ref) {
export const GridErrorOverlay = React.forwardRef<HTMLDivElement, GridErrorOverlayProps>(
function GridErrorOverlay(props, ref) {
Copy link
Member

Choose a reason for hiding this comment

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

We should include the renamed exports in the migration guide

Copy link
Member Author

Choose a reason for hiding this comment

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

This file was not exported previously, only being used in slots, may be export it then?
But as it will be a new export it won't go in migration guide, right?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, indeed.
No need to export it then

Copy link
Member

Choose a reason for hiding this comment

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

Just to mention here. The user from #6800 reused the ErrorOverlayProps interface by importing directly this file. I don't think we need update the migration guide but we could add a comment in case he wants to try v6.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, thanks for the update!

@m4theushw m4theushw changed the title [DataGrid] Renames 'ErrorOverlay' to 'GridErrorOverlay' [DataGrid] Renames ErrorOverlay to GridErrorOverlay Nov 22, 2022
export const ErrorOverlay = React.forwardRef<HTMLDivElement, ErrorOverlayProps>(
function ErrorOverlay(props: ErrorOverlayProps, ref) {
export const GridErrorOverlay = React.forwardRef<HTMLDivElement, GridErrorOverlayProps>(
function GridErrorOverlay(props, ref) {
Copy link
Member

Choose a reason for hiding this comment

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

Just to mention here. The user from #6800 reused the ErrorOverlayProps interface by importing directly this file. I don't think we need update the migration guide but we could add a comment in case he wants to try v6.

@cherniavskii cherniavskii changed the title [DataGrid] Renames ErrorOverlay to GridErrorOverlay [DataGrid] Rename ErrorOverlay to GridErrorOverlay Nov 22, 2022
@MBilalShafi MBilalShafi merged commit afdb823 into mui:next Nov 23, 2022
@MBilalShafi MBilalShafi deleted the rename-error-overlay branch November 23, 2022 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: data grid This is the name of the generic UI component, not the React module! v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Rename ErrorOverlay
4 participants