It seems like an old question, but still relevant.
I think this is a blocked update issue.
The main problem is that the new URL (route) must be displayed by the same component ( Costumers ) that is currently in use (current URL).
Thus, the solution is quite simple, make the URL of the window as a props, so that the reaction has a chance to detect a change in props (and therefore a change in URL), and act accordingly.
A good use case described in the official reaction blog is called " Recommendation: a completely uncontrolled component with a key . "
So the solution is to go from render() { return(<ul>
to render() { return(<ul key={this.props.location.pathname}>
Thus, whenever the location changes in the reacting router, the component is removed (by reaction), and a new one is initiated with the correct values (by reaction).
Yes, and pass location as a requisite to the component ( Costumers ) where the redirection will occur, if it has not yet been transferred.
Hope this helps someone.
arcol source share