Skip to content
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

Fix hoisting of react statics between two forwardRef components #71

Merged

Conversation

eps1lon
Copy link
Contributor

@eps1lon eps1lon commented Dec 2, 2018

Closes #66.

Technically preventing to hoist propTypes is wrong for react < 16.4.1. Since facebook/react#12911 was introduced in a patch and propTypes shouldn't be considered a non-react static anyway this should be fine.

Edit:
Technically name is also a react static looking at https://github.com/facebook/react/blob/master/packages/shared/getComponentName.js concerned with the name of the component but I haven't seen it being documented.

@mridgway
Copy link
Owner

mridgway commented Dec 3, 2018

Thanks!

@mridgway mridgway merged commit 08d4725 into mridgway:master Dec 3, 2018
@mridgway
Copy link
Owner

mridgway commented Dec 3, 2018

Published in v3.2.1.

@eps1lon eps1lon deleted the fix/react-statics-hoisting-forwardRef branch December 3, 2018 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants