Skip to content

Conversation

@DiegoAndai
Copy link
Member

@DiegoAndai DiegoAndai commented Aug 12, 2024

Part of #42824

This PR takes out most of the type changes from #42824. The only changes we cannot take out are:

  • Replacing MutableRefObject with RefObject (for example, this one). We cannot change this as RefObject is immutable in React 18 and prior, so it would introduce an immutable type in v5 that wasn't there before.
  • This change as ref is not passed as a prop in React 18

Here are codesandboxes to check that the useRef types are indeed compatible:

@DiegoAndai DiegoAndai added scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI package: material-ui integration: react About improving React support. labels Aug 12, 2024
@DiegoAndai DiegoAndai self-assigned this Aug 12, 2024
@mui-bot
Copy link

mui-bot commented Aug 12, 2024

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 0254d0a

@DiegoAndai DiegoAndai force-pushed the react-19-compatibility-types branch 2 times, most recently from 8accaca to 869ff4c Compare August 12, 2024 21:01
@DiegoAndai DiegoAndai force-pushed the react-19-compatibility-types branch from 869ff4c to 0254d0a Compare August 12, 2024 21:02
Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

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

🎉

@DiegoAndai DiegoAndai merged commit 795a8c9 into mui:next Aug 13, 2024
@DiegoAndai DiegoAndai deleted the react-19-compatibility-types branch August 13, 2024 13:19
DiegoAndai added a commit to DiegoAndai/material-ui that referenced this pull request Nov 27, 2024
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. scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants