From 27ab8e01a4aa2f9f6dde2dbb39ed16ff9090c9e2 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 8 Aug 2025 17:50:52 +0200 Subject: [PATCH] refactor: simpler param recognition in build --- .../experimental/route-resolver/matchers/matcher-pattern.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts b/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts index 03497957..866114cb 100644 --- a/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts +++ b/packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts @@ -320,6 +320,7 @@ export class MatcherPatternPathCustomParams< } build(params: ExtractParamTypeFromOptions): string { + let paramIndex = 0 return ( '/' + this.pathParts @@ -327,7 +328,7 @@ export class MatcherPatternPathCustomParams< if (typeof part === 'string') { return part } - const paramName = this.paramsKeys[part] + const paramName = this.paramsKeys[paramIndex++] const paramOptions = this.params[paramName] const value: ReturnType> = ( paramOptions.parser?.set || (v => v) -- 2.47.3