@ionic/react-router 9.0.6-dev.11790349282.1a877abd → 9.0.6-dev.11790776272.1d27d1bd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2324,10 +2324,10 @@ class StackManager extends React.PureComponent {
|
|
|
2324
2324
|
// because overwriting its reactElement below would swap its page for the winning
|
|
2325
2325
|
// route's and unmount it. This has to resolve before shouldUnmountLeavingView and
|
|
2326
2326
|
// handleRootNavigation, which both branch on the entering view item.
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2327
|
+
const matchedRouteProps = enteringViewItem?.routeData?.childProps;
|
|
2328
|
+
const matchedAnOverMatchingRoute = isOverMatchingRoute(matchedRouteProps ?? {});
|
|
2329
|
+
const routeOwnerDisagrees = enteringRoute !== undefined && enteringRoute.props.path !== matchedRouteProps?.path;
|
|
2330
|
+
if (enteringViewItem && matchedAnOverMatchingRoute && routeOwnerDisagrees) {
|
|
2331
2331
|
enteringViewItem = undefined;
|
|
2332
2332
|
}
|
|
2333
2333
|
let shouldUnmountLeavingViewItem = this.shouldUnmountLeavingView(routeInfo, enteringViewItem, leavingViewItem);
|