@tanstack/router-core 0.0.1-beta.34 → 0.0.1-beta.35

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.
@@ -1031,10 +1031,10 @@
1031
1031
  }
1032
1032
  function matchByPath(basepath, from, matchLocation) {
1033
1033
  var _matchLocation$to;
1034
- if (basepath && !from.startsWith(basepath)) {
1034
+ if (!from.startsWith(basepath)) {
1035
1035
  return undefined;
1036
1036
  }
1037
- from = from.startsWith(basepath) ? from.substring(basepath.length) : from;
1037
+ from = basepath != '/' ? from.substring(basepath.length) : from;
1038
1038
  const baseSegments = parsePathname(from);
1039
1039
  const to = "" + ((_matchLocation$to = matchLocation.to) != null ? _matchLocation$to : '*');
1040
1040
  const routeSegments = parsePathname(to);
@@ -1752,10 +1752,8 @@
1752
1752
  match
1753
1753
  })));
1754
1754
  } catch (err) {
1755
- if (err != null && err.then) {
1756
- await new Promise(() => {});
1757
- }
1758
- throw err;
1755
+ console.info(err);
1756
+ invariant(false, "A route's beforeLoad middleware failed! \uD83D\uDC46");
1759
1757
  }
1760
1758
  router.notify();
1761
1759
 
@@ -1904,6 +1902,7 @@
1904
1902
  fuzzy,
1905
1903
  caseSensitive: (_route$options$caseSe = route.options.caseSensitive) != null ? _route$options$caseSe : router.options.caseSensitive
1906
1904
  });
1905
+ console.log(router.basepath, route.fullPath, fuzzy, pathname, matchParams);
1907
1906
  if (matchParams) {
1908
1907
  let parsedParams;
1909
1908
  try {