-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
How to implement shouldComponentUpdate when using ReactIntl #58
Labels
Comments
TL;DR: do not use the context, be explicit thru props: |
@caridy this is not manageable for a very large app :( |
This was referenced Feb 27, 2015
Related to this, we should also implement |
See: #162 |
longlho
pushed a commit
that referenced
this issue
Apr 27, 2020
Fix Travis CI badge to link directly to the current build
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not clear on how a component that uses ReactIntl.Mixin (or any of the new components) can implement shoulComponentUpdate. Am I able to get at the messages/locale/formats properties from inside a subcomponent of my app so that when I switch languages I can re-render the components that use these? When using PureRenderMixin it just never re-renders the components that use it at all.
Is this just a fundamental problem when passing down the locale props down with context or is there a way to solve it?
The text was updated successfully, but these errors were encountered: