Skip to content

Fix hoisting of react statics between two forwardRef components#71

Merged
mridgway merged 1 commit intomridgway:masterfrom
eps1lon:fix/react-statics-hoisting-forwardRef
Dec 3, 2018
Merged

Fix hoisting of react statics between two forwardRef components#71
mridgway merged 1 commit intomridgway:masterfrom
eps1lon:fix/react-statics-hoisting-forwardRef

Conversation

@eps1lon
Copy link
Copy Markdown
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
Copy Markdown
Owner

mridgway commented Dec 3, 2018

Thanks!

@mridgway mridgway merged commit 08d4725 into mridgway:master Dec 3, 2018
@mridgway
Copy link
Copy Markdown
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.

2 participants