Page MenuHomePhabricator

D5442.diff
No OneTemporary

D5442.diff

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

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)

Event Timeline