-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
cannot access static fetchData function after using withTranslation #800
Comments
Thanks for your quick reply 👍 |
hi @jamuhl |
not sure...never needed refs to much... |
in previous version we have withRef to make it work. |
pass a prop innerRef to your component setting ref on the component needed... |
Maybe withTranslation hoc can support forwardRef, to make it work? |
You might add a PR? Not forget to add a test for the new feature. |
#802 |
guess not needed on withSSR...still can add that when users ask for it...will review your PR tomorrow |
currently I'm trying to upgrade the react-i18next from v7 to v10.
we use static function to fetchData in server side like below:
I try to change the translate to withTranslation, but it failed to access to the previous static fetchData.
How can I reach the static fetchData function?
The text was updated successfully, but these errors were encountered: