@jsenv/navi 0.16.4 → 0.16.6

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.
@@ -8482,9 +8482,15 @@ const isParentRoute = (parentPattern, childPattern) => {
8482
8482
  const parentPath = normalizePath(parentPattern);
8483
8483
  const childPath = normalizePath(childPattern);
8484
8484
 
8485
- // Parent route is a parent if child path starts with parent path
8485
+ // Special case: root route "/" should never clear signals from other routes
8486
+ // The root route is conceptually different from all other app sections
8487
+ if (parentPath === "/") {
8488
+ return false;
8489
+ }
8490
+
8491
+ // Parent route is a parent if child path starts with parent path + "/"
8486
8492
  // and child has additional segments
8487
- return childPath.startsWith(parentPath) && childPath !== parentPath;
8493
+ return childPath.startsWith(`${parentPath}/`) && childPath !== parentPath;
8488
8494
  };
8489
8495
 
8490
8496
  // Controls what happens to actions when their route stops matching:
@@ -18535,12 +18541,12 @@ const TabRoute = ({
18535
18541
  expand: true,
18536
18542
  discrete: true,
18537
18543
  padding: padding,
18538
- paddingX: paddingX,
18539
- paddingY: paddingY,
18540
18544
  paddingLeft: paddingLeft,
18541
18545
  paddingRight: paddingRight,
18542
18546
  paddingTop: paddingTop,
18543
18547
  paddingBottom: paddingBottom,
18548
+ paddingX: paddingX,
18549
+ paddingY: paddingY,
18544
18550
  alignX: alignX,
18545
18551
  alignY: alignY,
18546
18552
  children: children