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] Refactor: remove useless copy #14039

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Jul 30, 2024

Noticed this while working on #10033 and mui/material-ui#43120.

We are making a copy to pass to the function, but the callee never mutates its argument (like basically all functions in our codebase) so there is no need to copy.

@romgrk romgrk added the component: data grid This is the name of the generic UI component, not the React module! label Jul 30, 2024
@romgrk romgrk requested a review from a team July 30, 2024 15:04
@mui-bot
Copy link

mui-bot commented Jul 30, 2024

Deploy preview: https://deploy-preview-14039--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 25ea1a6

@romgrk romgrk merged commit dd1158f into mui:master Jul 30, 2024
22 checks passed
@romgrk romgrk deleted the refactor-use-props branch July 30, 2024 18:54
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! performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants