flexdinesh/react-redux-boilerplate

Redirect does not update Component

Open

#19 创建于 2018年8月10日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (782 star) (275 fork)batch import
help wanted

描述

I've tried to use push history and Redirect but the effect is always the same, location is changed on browser, but expected Component is not rendered (render method of previous url is called instead). I've tried to use withRouter in compose but also no effect.

App.js:

HomePage: if (toEquity === true) { let whereTo = '/equities/' + selectedSuggestion; return }

EquityPage is not rendered and not even his methods (componentDidMount, componentWillReceiveProps, ...)

Thanks in advance.

贡献者指南