callstack / callstack/react-native-slider
Bug when working with expo router
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 295
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
## 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện báo cáo với React 19.0.0 và React Native 0.79.5, sử dụng hai slider trên một màn hình stack rồi điều hướng ra ngoài và quay lại thông qua Expo Router. Issue không cung cấp project có thể tái hiện, file, entry point hoặc test, vì vậy để hoàn thành sẽ cần cô lập nguyên nhân và thêm một regression test cho trường hợp điều hướng với hai slider.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100