@tanstack/router-core 1.132.0-alpha.20 → 1.132.0-alpha.21
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 +4 -5
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +4 -5
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +10 -12
package/dist/cjs/router.cjs
CHANGED
|
@@ -976,24 +976,23 @@ class RouterCore {
|
|
|
976
976
|
search: preMatchSearch
|
|
977
977
|
}) ?? "";
|
|
978
978
|
const loaderDepsHash = loaderDeps ? JSON.stringify(loaderDeps) : "";
|
|
979
|
-
const { interpolatedPath } = path.interpolatePath({
|
|
979
|
+
const { interpolatedPath, usedParams } = path.interpolatePath({
|
|
980
980
|
path: route.fullPath,
|
|
981
981
|
params: routeParams,
|
|
982
982
|
decodeCharMap: this.pathParamsDecodeCharMap
|
|
983
983
|
});
|
|
984
|
-
const
|
|
984
|
+
const matchId = path.interpolatePath({
|
|
985
985
|
path: route.id,
|
|
986
986
|
params: routeParams,
|
|
987
987
|
leaveWildcards: true,
|
|
988
988
|
decodeCharMap: this.pathParamsDecodeCharMap,
|
|
989
989
|
parseCache: this.parsePathnameCache
|
|
990
|
-
});
|
|
991
|
-
const matchId = interpolatePathResult.interpolatedPath + loaderDepsHash;
|
|
990
|
+
}).interpolatedPath + loaderDepsHash;
|
|
992
991
|
const existingMatch = this.getMatch(matchId);
|
|
993
992
|
const previousMatch = this.state.matches.find(
|
|
994
993
|
(d) => d.routeId === route.id
|
|
995
994
|
);
|
|
996
|
-
const strictParams = existingMatch?._strictParams ??
|
|
995
|
+
const strictParams = existingMatch?._strictParams ?? usedParams;
|
|
997
996
|
let paramsError = void 0;
|
|
998
997
|
if (!existingMatch) {
|
|
999
998
|
const strictParseParams = route.options.params?.parse ?? route.options.parseParams;
|