Skip to content

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

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 1 commit into from
May 30, 2016
Merged

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

merged 1 commit into from
May 30, 2016

Conversation

macca16
Copy link
Owner

@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.

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 macca16 merged commit 26495e6 into master May 30, 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.

1 participant