diff --git a/native/ios/Podfile.lock b/native/ios/Podfile.lock --- a/native/ios/Podfile.lock +++ b/native/ios/Podfile.lock @@ -1322,4 +1322,4 @@ PODFILE CHECKSUM: 4941a5495075fdda98e5a2f416bf6315c8111946 -COCOAPODS: 1.11.3 +COCOAPODS: 1.11.2 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 = {};