ionic-team / ionic-team/ionic-framework

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

Abierto
#27,900 10 comentarios 0 reacciones 0 asignados Ver en GitHub
type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### 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)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.