I have a component, let's say MyComponent, accessible through a route like this:
<Route path="/myComponent/:id" exact component={MyComponent} />
Inside MyComponent I have:
<Link to="/myComponent/2">2</Link>
That is, MyComponent links to itself. But this link does not work! If I inspect the React component through Chrome's developer tools, then props.match has been updated accordingly, but MyComponent has not been re-rendered and the constructor has not been recalled so that the state can be updated accordingly.
Minimal example: https://codesandbox.io/s/sharp-bouman-i1b0p?fontsize=14 - if you browse to this URL then you'll see the ID 1 appear on the rendered screen, but if you click on the 2 link the screen will not rerender even though the URL does update. If you go to this URL then the ID 2 will appear as expected.