You will see the page is not change, but devtools lose selection of "Home" link. If you use react devtools, You will found that the whole about component did full render again after click "Home" link. I guess reason is there's a temporary frame of switch component before the final render. It renders nothing, So react can't reuse about component after that.
Version
react-router-dom@5.1.2
Test Case
https://codesandbox.io/s/react-router-u0yte
Steps to reproduce
Actual Behavior
You will see the page is not change, but devtools lose selection of "Home" link. If you use react devtools, You will found that the whole about component did full render again after click "Home" link. I guess reason is there's a temporary frame of switch component before the final render. It renders nothing, So react can't reuse about component after that.
Expected Behavior
No rerender occurs