I have seen so many questions but haven't got the answer.
When i do history.push('/user') when i am on '/dashboard', it works great because my base route is different i.e user!=dashboard. But when i am on route '/user' and now i want to go to history.push('/user/87'). Here the weird thing happens as base route is same user===user, my url change but my component did not render again. I have use the <Link> thing which the react-router-dom provides but it doesn't work too.
here is my root thing,
import { BrowserRouter } from 'react-router-dom'; //"^5.0.1"
ReactDOM.render((
<Provider store={store}>
<BrowserRouter>
<AppContainer />
</BrowserRouter>
</Provider>
), document.getElementById('root'));
Please provide the solution it would be great help.