Skip to content

Map props.key to state.intl.locale #6

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

Merged
merged 2 commits into from
May 31, 2016
Merged

Map props.key to state.intl.locale #6

merged 2 commits into from
May 31, 2016

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