@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.
@@ -974,24 +974,23 @@ class RouterCore {
974
974
  search: preMatchSearch
975
975
  }) ?? "";
976
976
  const loaderDepsHash = loaderDeps ? JSON.stringify(loaderDeps) : "";
977
- const { interpolatedPath } = interpolatePath({
977
+ const { interpolatedPath, usedParams } = interpolatePath({
978
978
  path: route.fullPath,
979
979
  params: routeParams,
980
980
  decodeCharMap: this.pathParamsDecodeCharMap
981
981
  });
982
- const interpolatePathResult = interpolatePath({
982
+ const matchId = interpolatePath({
983
983
  path: route.id,
984
984
  params: routeParams,
985
985
  leaveWildcards: true,
986
986
  decodeCharMap: this.pathParamsDecodeCharMap,
987
987
  parseCache: this.parsePathnameCache
988
- });
989
- const matchId = interpolatePathResult.interpolatedPath + loaderDepsHash;
988
+ }).interpolatedPath + loaderDepsHash;
990
989
  const existingMatch = this.getMatch(matchId);
991
990
  const previousMatch = this.state.matches.find(
992
991
  (d) => d.routeId === route.id
993
992
  );
994
- const strictParams = existingMatch?._strictParams ?? interpolatePathResult.usedParams;
993
+ const strictParams = existingMatch?._strictParams ?? usedParams;
995
994
  let paramsError = void 0;
996
995
  if (!existingMatch) {
997
996
  const strictParseParams = route.options.params?.parse ?? route.options.parseParams;