Jan 25, 2021
It modifies the browser history, so the URL won’t change, but the “location” object will, since it’s internal state got updated
As in the article, if you do const location = useLocation()
in a component, this component *should* re-render since the browser location object has changed.
If this doesn’t happen, make sure you follow the setup instructions correctly https://github.com/supasate/connected-react-router#step-2 by passing tthe same history
object to both your <Router>
component and your routerMiddleware
.
Best,
Aggelos