flexdinesh/react-redux-boilerplate

Redirect does not update Component

Open

#19 aberto em 10 de ago. de 2018

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (275 forks)batch import
help wanted

Métricas do repositório

Stars
 (782 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador