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