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
withI18n
breaks static members
#583
Comments
What you probably need to do is hoist non-react statics: https://github.com/mridgway/hoist-non-react-statics See also: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over |
done for feel free to provide a PR doing the same for |
I'm writing a PR. Hold on. |
Fixed it 👍 |
jamuhl
added a commit
that referenced
this issue
Oct 26, 2018
Ensure withI18n hoists static members. Fixes #583.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An example demonstrates this best:
This essentially breaks access to static members of the wrapped component, which is often used to expose compound components.
I discovered this when using I18next with React Async, which uses compound components.
The text was updated successfully, but these errors were encountered: