@ionic/react-router 8.8.1-dev.11773665268.1511a6c7 → 8.8.1-dev.11773676615.1d6c4cf7

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 CHANGED
@@ -701,15 +701,9 @@ class ReactRouterViewStack extends ViewStacks {
701
701
  if (existingIsIndexRoute && newIsIndexRoute) {
702
702
  return true;
703
703
  }
704
- // Reuse empty-path routes (path="") that are not index routes.
705
- // These function like index routes and should be reused to prevent
706
- // duplicate views when navigating back to the default path.
707
- if (existingPath === '' && routePath === '' && !existingIsIndexRoute && !newIsIndexRoute) {
708
- return true;
709
- }
710
704
  // Reuse view items with the same path
711
705
  // Special case: reuse tabs/* and other specific wildcard routes
712
- // Don't reuse generic catch-all wildcards (*)
706
+ // Don't reuse index routes (empty path) or generic catch-all wildcards (*)
713
707
  if (existingPath === routePath && existingPath !== '' && existingPath !== '*') {
714
708
  // Parameterized routes need pathname matching to ensure /details/1 and /details/2
715
709
  // get separate view items. For wildcard routes (e.g., user/:userId/*), compare