push a new route only triggers url change but not location change

Solutions on MaxInterview for push a new route only triggers url change but not location change by the best coders in the world

showing results for - "push a new route only triggers url change but not location change"
Maja
14 Aug 2017
1<ConnectedRouter history={history}>
2    <BrowserRouter>
3      <Switch>
4        <PrivateRouter exact path="/" component={App} />
5        <Route exact path="/login" component={Login} />
6        <Route component={NotFound} />
7     </Switch>
8   <BrowserRouter>
9</ConnectedRouter>
Emilia
21 Jul 2020
1 <Switch>
2      <>
3        <Route path="/">
4          <Welcome />
5        </Route>
6        <Redirect to="/" />
7      </>
8 </Switch>