update explanation on key prop

pull/402/head^2
slowbackspace 5 years ago
parent 8a904b4e06
commit e6c67d0321

@ -44,7 +44,7 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: St
const ReactIntlProvider = ({ children, locale, messages }: Props) => (
<IntlProvider
key={locale} // dirty hack to rerender IntlProvider when lang file is downloaded
key={locale} // forces rerender IntlProvider when lang file is downloaded
locale={locale}
messages={messages}
>

Loading…
Cancel
Save