Root component Appear not working in first time after launch
Chưa có ai nhận issue này.
- #8295 của @markdevocht — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react-native
- Lĩnh vực
- mobile
Hướng nghiên cứu
Bắt đầu bằng cách xem xét pull request đang mở #8295 và luồng bindComponent được mô tả trong issue này. Theo dõi cách AppState.addEventListener('change', ...) và handleAppStateChange dẫn đến componentDidAppear cho một màn hình root trong lần khởi chạy đầu tiên. Được xem là hoàn tất khi componentDidAppear được gửi một cách đáng tin cậy sau khi component root được mount trong lần khởi chạy ban đầu, với hành vi liên quan được các bài kiểm thử của dự án bao phủ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
Root component Appear not working in first time after launch
Root cause: AppState.addEventListener('change', ...) only fires on changes — not the initial state. On first launch the app is already 'active', so no change event fires. handleAppStateChange (which calls componentDidAppear()) never runs.
RNN's bindComponent should handle this, but for root screens RNN sometimes fires componentDidAppear before the component is fully mounted, causing it to be missed.
What was the expected behaviour?
No response
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
Root cause: AppState.addEventListener('change', ...) only fires on changes — not the initial state. On first launch the app is already 'active', so no change event fires. handleAppStateChange (which calls componentDidAppear()) never runs.
RNN's bindComponent should handle this, but for root screens RNN sometimes fires componentDidAppear before the component is fully mounted, causing it to be missed.
In what environment did this happen?
React Native Navigation version:
React Native version: 0.84
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: 24
Device model: sumsung : SM M325F
Android version: 14
- Ngôn ngữ chính
- MDX
- Star
- 13.2k
- Fork
- 2.6k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wix/react-native-navigation
-
needs triage triage: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wix/react-native-navigation#8343 · 1 bình luận ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already existsCó thể đã có người làm @IsaacIsrael đã nhận 159 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wix/react-native-navigation#8318 ·
-
Build Failed with RN 0.87Đang mởneeds triage type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
wix/react-native-navigation#8365 · 2 bình luận ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycleCó thể đã có người làm @yedidyak đã nhận 4 ngày trước. Đang mởplatform: iOS type: accepted/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
wix/react-native-navigation#8345 · 2 bình luận · 2 reaction ·
-
platform: iOS type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
wix/react-native-navigation#8340 ·
Tất cả issue của wix/react-native-navigation
Issue tương tự
-
bug os:ios
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hajimehoshi/ebiten#4039 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
callstack/react-native-paper#5189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nightscout/Trio#1748 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
QuranHub/quranhub-android#354 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
firebase/flutterfire#18918 ·
Maintainer thường phản hồi trong vòng 1 ngày