Skip to content

Conversation

macca16
Copy link
Contributor

@macca16 macca16 commented May 30, 2016

See proposed solution to switching locales with react-redux formatjs/formatjs#234 (comment)
I tweaked mapStateToProps to set props.key to state.intl.locale so that a re-render occurs when locale is hot swapped.

macca16 added 2 commits May 30, 2016 12:30
See proposed solution to switching locales with react-redux formatjs/formatjs#234 (comment)
I tweaked mapStateToProps to set props.key to state.intl.locale so that a re-render occurs when locale is hot swapped.
Map props.key to state.intl.locale
@ratson
Copy link
Owner

ratson commented May 31, 2016

@macca16 Thanks.

@ratson ratson merged commit 47c266f into ratson:master May 31, 2016
@ratson ratson mentioned this pull request May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants