flexdinesh/react-redux-boilerplate

Redirect does not update Component

Open

#19 aperta il 10 ago 2018

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (275 fork)batch import
help wanted

Metriche repository

Star
 (782 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor