Pull Request, which adds component
prop to OverrideProps
type, breaks MUI behavior
#38079
Closed
2 tasks done
Labels
core
Infrastructure work going on behind the scenes
duplicate
This issue or pull request already exists
package: material-ui
Specific to @mui/material
Duplicates
Latest version
Steps to reproduce 🕹
No response
Current behavior 😯
No response
Expected behavior 🤔
No response
Context 🔦
It's about this pull-quest #35924
This PR seems to have broken some of the MUI use cases. Here is my example - we have a Link component in our application. It is a wrapper over Link from MUI, to which Link from react-router-dom is passed as component prop. The code looks like this:
In case we needed to make a link button, we just did
and didn't experience any problems, everything worked. Now this case is not possible due to typescript errors.
This is just one case, there are several more similar ones in our application. But the point is that this PR breaks MUI behavior, which always worked fine.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: