Skip to content

Conversation

@aarongarciah
Copy link
Member

@aarongarciah aarongarciah commented Jun 27, 2024

Fixes a React warning caused by key being spread. This only happens starting with React 18.3

image

@aarongarciah aarongarciah added test package: joy-ui Specific to Joy UI. needs cherry-pick The PR should be cherry-picked to master after merge. integration: react About improving React support. labels Jun 27, 2024
@aarongarciah aarongarciah requested a review from DiegoAndai June 27, 2024 16:08
@aarongarciah aarongarciah mentioned this pull request Jun 27, 2024
15 tasks
@mui-bot
Copy link

mui-bot commented Jun 27, 2024

Netlify deploy preview

https://deploy-preview-42775--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against fb71ebe

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Is the warning only triggered once? And that's why these have been showing up one by one? It would be great if we could have one PR for all of them 😅

@aarongarciah
Copy link
Member Author

@DiegoAndai this should be the last spread key warning in our tests. I double checked. Demos is another story (as we saw in the Autocomplete demos) because this is a runtime error that is triggered only when the piece of JSX runs. In the case of Autocomplete, most warnings were triggered when opening it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration: react About improving React support. needs cherry-pick The PR should be cherry-picked to master after merge. package: joy-ui Specific to Joy UI. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants