Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3274882
D5442.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
845 B
Referenced Files
None
Subscribers
None
D5442.diff
View Options
diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js
--- a/native/navigation/overlay-navigator.react.js
+++ b/native/navigation/overlay-navigator.react.js
@@ -313,10 +313,9 @@
const newVisibleOverlays = curVisibleOverlays.filter(
overlay => overlay.routeKey !== key,
);
- invariant(
- newVisibleOverlays.length < curVisibleOverlays.length,
- `could not find ${key} in visibleOverlays`,
- );
+ if (newVisibleOverlays.length === curVisibleOverlays.length) {
+ return;
+ }
visibleOverlaysRef.current = newVisibleOverlays;
setSceneData(curSceneData => {
const newSceneData = {};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 6:49 AM (22 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2516819
Default Alt Text
D5442.diff (845 B)
Attached To
Mode
D5442: [native] FIXED: Overlay navigator crashes when we open too many overlays at the same time.
Attached
Detach File
Event Timeline
Log In to Comment