@tanstack/router-core 1.168.7 → 1.168.9
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/load-matches.cjs +2 -2
- package/dist/cjs/load-matches.cjs.map +1 -1
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/load-matches.js +2 -2
- package/dist/esm/load-matches.js.map +1 -1
- package/dist/esm/router.js +1 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/load-matches.ts +5 -4
- package/src/router.ts +1 -1
package/package.json
CHANGED
package/src/load-matches.ts
CHANGED
|
@@ -1002,7 +1002,7 @@ export async function loadMatches(arg: {
|
|
|
1002
1002
|
break
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
if (inner.serialError) {
|
|
1005
|
+
if (inner.serialError || inner.firstBadMatchIndex != null) {
|
|
1006
1006
|
break
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
@@ -1057,9 +1057,10 @@ export async function loadMatches(arg: {
|
|
|
1057
1057
|
firstNotFound ??
|
|
1058
1058
|
(beforeLoadNotFound && !inner.preload ? beforeLoadNotFound : undefined)
|
|
1059
1059
|
|
|
1060
|
-
let headMaxIndex =
|
|
1061
|
-
|
|
1062
|
-
|
|
1060
|
+
let headMaxIndex =
|
|
1061
|
+
inner.firstBadMatchIndex !== undefined
|
|
1062
|
+
? inner.firstBadMatchIndex
|
|
1063
|
+
: inner.matches.length - 1
|
|
1063
1064
|
|
|
1064
1065
|
if (!notFoundToThrow && beforeLoadNotFound && inner.preload) {
|
|
1065
1066
|
return inner.matches
|
package/src/router.ts
CHANGED