-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][Autocomplete] Fix default value for multiple mode getting redefined with React 19 #43189
[material-ui][Autocomplete] Fix default value for multiple mode getting redefined with React 19 #43189
Conversation
Netlify deploy previewhttps://deploy-preview-43189--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
@michaldudak does this change make sense to you? Without these, the "controlled to uncontrolled" error throws here: Just double checking if there's no better solution here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense for sure 👍. I'm just not aware why this started to be a problem only now with React 19.
I was wondering the same 😅 Thanks fro reviewing! |
…ng redefined with React 19 (mui#43189)
Part of: #42824
I couldn't find a reason in the React 19 upgrade guide for why this change was necessary. What I understand is that because the array is being defined on every render, it's not stable. Users would have to change this as well when upgrading to React 19.