@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.
- package/dist/cjs/router.cjs +2 -9
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +2 -9
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +2 -10
package/dist/cjs/router.cjs
CHANGED
|
@@ -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
|
-
|
|
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) {
|