We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since the latest version I get the misleading warning from PropTypes despite the prop is being provided:
Warning: Failed prop type: The prop xxx is marked as required in Foo, but its value is undefined.
xxx
Foo
undefined
Compare the same code with different versions in CodeSandbox and check the console:
Locally I tried to revert this line:
hoist-non-react-statics/src/index.js
Line 41 in 69090b6
Back to this:
Line 32 in 03a7f2f
And it seemed to work again. I am not sure what's happening there and I did not investegate further, just wanted to share some insights.
The text was updated successfully, but these errors were encountered:
Ah, I see what's happening here. It has to do with how we detect the type of components here: https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js#L60. I will follow up on this with a fix.
Sorry, something went wrong.
This should be fixed in v3.0.1.
Thanks for the quick resolution
No branches or pull requests
Since the latest version I get the misleading warning from PropTypes despite the prop is being provided:
Compare the same code with different versions in CodeSandbox and check the console:
Locally I tried to revert this line:
hoist-non-react-statics/src/index.js
Line 41 in 69090b6
Back to this:
hoist-non-react-statics/src/index.js
Line 32 in 03a7f2f
And it seemed to work again. I am not sure what's happening there and I did not investegate further, just wanted to share some insights.
The text was updated successfully, but these errors were encountered: