@tanstack/router-core 1.157.9 → 1.157.10

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.
@@ -341,15 +341,8 @@ class RouterCore {
341
341
  const destMatchResult = this.getMatchedRoutes(interpolatedNextTo);
342
342
  let destRoutes = destMatchResult.matchedRoutes;
343
343
  const isGlobalNotFound = destMatchResult.foundRoute ? destMatchResult.foundRoute.path !== "/" && destMatchResult.routeParams["**"] : path.trimPathRight(interpolatedNextTo);
344
- if (isGlobalNotFound) {
345
- if (this.options.notFoundRoute) {
346
- destRoutes = [...destRoutes, this.options.notFoundRoute];
347
- } else {
348
- findGlobalNotFoundRouteId(
349
- this.options.notFoundMode,
350
- destRoutes
351
- );
352
- }
344
+ if (isGlobalNotFound && this.options.notFoundRoute) {
345
+ destRoutes = [...destRoutes, this.options.notFoundRoute];
353
346
  }
354
347
  let changedParams = false;
355
348
  if (Object.keys(nextParams).length > 0) {