You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to implement shouldComponentUpdate when using ReactIntl #58
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?
Activity
caridy commentedon Jan 13, 2015
TL;DR: do not use the context, be explicit thru props:
check this for more details: #39 (comment)
slorber commentedon Feb 27, 2015
@caridy this is not manageable for a very large app :(
ericf commentedon Apr 2, 2015
Related to this, we should also implement
shouldComponentUpdate()within each of the React Intl components.ericf commentedon Sep 11, 2015
See: #162
Merge pull request #58 from fhemberger/bug/travis