更改语言后如何通过react-router-dom重新加载页面(react-i18next)

时间:2019-01-15 15:09:17

标签: javascript reactjs react-redux react-router-dom react-i18next

我的反应有些问题。

我需要重新加载页面并在没有window.location的情况下更改语言后重新获取数据。

我使用react,redux,react-router-dom,react-i18next等

我不想使用componentWillReceiveProps并检查 如果我的参数en已更改为(ukru),然后调用方法来触发redux动作并提出请求。

有人有主意吗?

0 个答案:

没有答案