ionic-team / ionic-team/ionic-framework

bug: Swipe back gesture breaks with Ionic React Router on certain parameterized route changes

Offen
#27,900 10 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
type: bug
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

With Ionic React Router, swipe back gesture breaks when navigating in certain use cases between parameterized routes.

### Expected Behavior

Swipe back gesture works.

### Steps to Reproduce

## Reproduction A

### Assumed Ionic React Router app routes

Assume app with two routes in the router:

- `/foo/:user`
- `/baz`

### Repro

1. Navigate `/foo/alex`
2. Navigate `/baz`
3. Navigate `/foo/sean`
4. Swipe back once (successful)
5. Try to swipe back again, observe it is not possible (you need to hit the back button of the browser or in the header)

https://github.com/aeharding/ionic-27900-a

## Reproduction B

### Assumed Ionic React Router app routes

- `/:name`
- `/:name/details`

### Repro

1. Go to `/one`
2. Replace route with `/two`
3. Go to `/two/details`
4. Observe swipe back is broken

https://github.com/aeharding/ionic-27900-b

### Code Reproduction URL

_No response_

### Ionic Info

N/A

### Additional Information

This issue has been created from #26524 (see comments https://github.com/ionic-team/ionic-framework/issues/26524#issuecomment-1629445149 and https://github.com/ionic-team/ionic-framework/issues/26524#issuecomment-1658459383)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.