-
-
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
Bump @types/react to v18.3.6 #43555
Bump @types/react to v18.3.6 #43555
Conversation
Netlify deploy previewhttps://deploy-preview-43555--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
8517da2
to
546dddb
Compare
546dddb
to
608c175
Compare
608c175
to
8066cce
Compare
8066cce
to
10df2ad
Compare
10df2ad
to
a36fbf4
Compare
a36fbf4
to
6fdf08c
Compare
@michaldudak this -const PopperTooltip = React.forwardRef(function PopperTooltip<
+const PopperTooltip = React.forwardRef<HTMLDivElement, PopperTooltipProps>(function PopperTooltip<
RootComponentType extends React.ElementType,
>(props: PopperTooltipProps<RootComponentType>, forwardedRef: React.ForwardedRef<HTMLDivElement>) { (source) But it seems to me like this breaks the polymorphic usage of the Is this the correct fix? |
6fdf08c
to
47a4898
Compare
47a4898
to
d3c9745
Compare
Since we're casting the result of |
@DiegoAndai This seems to be the naive solution. Wouldn't that work? |
I believe so, we can solve it the same way by making the |
Thanks! I'll do it and update the PR |
5484b0b
to
3e9fd9d
Compare
@DiegoAndai I just rebased on top of master and removed your commit. I need this PR to fix some stuff #43964 (comment) I'll try to apply the necessary changes. Let's see if we can land this PR today. |
3e9fd9d
to
898ee95
Compare
@aarongarciah @Janpot I had to bring back my fix (this one): dd9c8fe and bb9f21b Seems to me that this particular problem can't be fixed with the approach in #43792, but instead is caused by something not working with forward ref inference and our polymorphic types after DefinitelyTyped/DefinitelyTyped#70361. Please correct me if I'm wrong. Because this issue is mainly inside mui-base, which is stale, and one material component that should be eventually removed, plus the components being casted anyways, I would merge this one to unblock the release. |
@DiegoAndai it's fine for me. I see we need to bring the changes in the docs Next.js config file because after |
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.
Seems to me that this particular problem can't be fixed with the approach in #43792, but instead is caused by something not working with forward ref inference and our polymorphic types after DefinitelyTyped/DefinitelyTyped#70361. Please correct me if I'm wrong.
Ok, I think I see what's happening, forwardRef
infers PopperTooltipProps<React.ElementType>
as props which includes the <details>
element, which has a open
property that can be undefined
. The solution should be fine.
This PR contains the following updates:
^18.3.4
->^18.3.6
18.3.4
->18.3.6
Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.