Skip to content

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 scope: data grid Changes related to the data grid. 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
@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

performance scope: data grid Changes related to the data grid.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants