callstack / callstack/react-native-slider
Bug when working with expo router
- Langage dominant
- TypeScript
- Étoiles
- 1.4k
- Forks
- 295
- Merge moyen
- 5 min
- PR mergées (30 j)
- 1
Description
## Environment
* react-native info output:
```
// react-native info
```
* are you using the new architecture?
* which version of react & react-native are you using?
"react": "19.0.0",
"react-native": "0.79.5",
## Description
So I migrated to use expo router from react navigation. One of my pages have two sliders. Before, it was working fine. However, after the migration, when i press back button on that slider page, and then go back to that page via router.push (i am in a stack navigator), the slider with the bigger maximum value would take the value of the other slider. This is such a strange behaviour! Someone needs to fix this! Why are two sliders sharing the same state. I experimented with this and even when the two sliders is not using any states, but I just put constants into the value field, etc., this issue still persists. This is incredibly frustrating. I even tried isolating the two sliders, and to no avail. I tried changing the key, doesn't work.
## Reproducible Demo
Read above
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le rapport avec React 19.0.0 et React Native 0.79.5, en utilisant deux sliders sur un écran de stack et en naviguant ailleurs puis en revenant via Expo Router. L’issue ne fournit aucun projet reproductible, fichier, point d’entrée ni test ; sa résolution nécessiterait donc d’isoler la cause et d’ajouter un test de régression pour le cas de navigation avec deux sliders.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react-native, typescript
- Domaine
- mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100