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 withRouter components being considered forwardRef types #6487

Merged
merged 2 commits into from
Nov 24, 2018

Conversation

eps1lon
Copy link
Contributor

@eps1lon eps1lon commented Nov 24, 2018

The fix was just a major bump of hoist-non-react-statics to include mridgway/hoist-non-react-statics#55. The breaking change was the hard dependency on react-is which is already included in react-router. Therefore this change is not breaking. As a side effect this will also prevent hoisting of contextType

The added test case will cover the change required for #6056.

@timdorr
Copy link
Member

timdorr commented Nov 24, 2018

Thanks! We needed this for React Redux 6.0 as well. I can confirm it works over there as well.

@timdorr timdorr merged commit 5407993 into remix-run:master Nov 24, 2018
@eps1lon eps1lon deleted the fix/forwardRef-hoisting branch November 24, 2018 19:14
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants