flexdinesh/react-redux-boilerplate

Redirect does not update Component

開放

#19 建立於 2018年8月10日

 (3 則留言) (0 個反應) (0 位負責人)JavaScript (275 個分叉)batch import
help wanted

倉庫指標

星標
 (782 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南