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
#1047 Hoist non-react statics in injectIntl #1141
#1047 Hoist non-react statics in injectIntl #1141
Conversation
That test failure seems unrelated, I can't retry the build though... |
I would love to get this landed sometime soon.. is this still maintained? |
@ericf are you the maintainer? Let me know what I can do to help get this in 🙏 |
Is this library maintained anymore? Anything I can do to help? |
@redonkulus is last known committer... |
@okuryu is the most recent maintainer. I have commit access and I merge simple changes, but I'm not an active maintainer. We are definitely looking for more maintainers to continue to move this project along. For any new code changes, it just needs to be properly tested. I've restarted the failing build to see if it was a one off issue. |
As for this PR, the original owner of this library had a lengthy discussion with other folks on why injectIntl does not hoist statics. Its worth reviewing those comments to understand why this was never merged previously. |
@okuryu @redonkulus @ericf yeah I understand the original discussion and it makes some sense. A library shouldn't concern itself with non-react statics per se. All the problems with HOC's aside, it seems strange to take a stand on this and break expected HOC behavior from many different libs in the ecosystem. Now we have a foot-gun in our repo that we have to handle with a special case... I disagree with the original authors assertion that it is "brittle". |
@redonkulus I think you have a volunteer: #1160 (comment) |
Thanks for the bump. I'm ok with the change, assuming it won't break anyone if its gets released. @sourabh2k15 has volunteered to help maintain this project too. I'd like to see him review and address any concerns or questions. |
Given the changes and the expectation in the community, I'm ok with merging this. |
Yes!!!!!!!! |
@redonkulus yes I would be contributing more actively from now onwards. I'll help reviewing the other PRs |
I'm very happy this was merged. Thanks @redonkulus for allowing this to go in. |
@backmeupplz Hey. Be more respectful to the maintainers. |
@Sparragus no offence intended, sorry if I insulted anybody. |
@backmeupplz if I am reading correctly, this wasn't released yet. 2.4.0 was released in Sept. of 2017 - https://github.com/yahoo/react-intl/releases/tag/v2.4.0 |
@bringking oh ok, I'll use |
Resolves #1047. We were running into an issue locally using
react-intl
with NextJS, which has a static calledgetInitialProps
. This PR adds hoists statics usinghoist-non-react-statics
in theinjectIntl
HOC and adds a test. Thanks for the great library!