From b74d19454ebe8d1e5cfb4994779b8c034e023ed9 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Tue, 28 Jun 2016 12:09:15 +0300 Subject: [PATCH] #119: fix bug with footer menu won't be re-rendered after lang change --- src/components/footerMenu/FooterMenu.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/footerMenu/FooterMenu.jsx b/src/components/footerMenu/FooterMenu.jsx index 2ac5725..dc46a5e 100644 --- a/src/components/footerMenu/FooterMenu.jsx +++ b/src/components/footerMenu/FooterMenu.jsx @@ -41,6 +41,8 @@ import { connect } from 'react-redux'; import ContactForm from 'components/contact/ContactForm'; import { create as createPopup } from 'components/ui/popup/actions'; +// mark this component, as not pure, because it is stateless, +// but should be re-rendered, if current lang was changed export default connect(null, { createPopup: () => createPopup(ContactForm) -})(FooterMenu); +}, null, {pure: false})(FooterMenu);