Open liamdebeasi opened 4 years ago
In the case of /pageone/:id routing, I would expect Ionic React to navigate to the same page as long as :id was different.
Wouldn't it make more sense to inherit react-router's behavior?:
There are things you wouldn't be able to do if 2. remounts component. For example, routing similar to Google Maps would be impossible to do.
Bug Report
Ionic version:
[x] 5.x
Current behavior:
When on page
/foo
and trying to navigate to page/foo
again, Ionic React will perform a nav transition to take you to/foo
.Expected behavior:
The current behavior is not consistent with what happens in Ionic Angular. Attempting to navigate from
/foo
to/foo
should not perform any nav transition as it is trying to navigate to the exact same page.Steps to reproduce:
Download the repo: https://github.com/liamdebeasi/ionic-react-same-page-bug
react
directory.ion-button
. You should be navigated from/home
to/home
again.angular
directory.ion-button
. You should not be navigated from/home
to/home
again.Ionic info: