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
'children' is missing in props validation(react/prop-types) when using React.PropsWithChildren
as of 7.25.0
#3062
Comments
cc @vedadeepta |
Will look into it |
I'm seeing the same with |
@johnhunter the PR fixes
|
Fixed in #3064, which will be released soon. |
Thanks for the quick fix! |
I still see |
@johnhunter you’ll see that for eternity, since that version doesn’t contain the fix. |
When you have a typescript component like:
As of 7.25 you get the warning:
React.PropsWithChildren
is defined as:If you change the Component props type to:
The warning disappears.
I believe this is a mistake. The warning should not trigger in both cases.
It did not trigger in 7.24. It does as of 7.25.
The text was updated successfully, but these errors were encountered: