We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3aff90 commit 27ab8e0Copy full SHA for 27ab8e0
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts
@@ -320,14 +320,15 @@ export class MatcherPatternPathCustomParams<
320
}
321
322
build(params: ExtractParamTypeFromOptions<TParamsOptions>): string {
323
+ let paramIndex = 0
324
return (
325
'/' +
326
this.pathParts
327
.map(part => {
328
if (typeof part === 'string') {
329
return part
330
- const paramName = this.paramsKeys[part]
331
+ const paramName = this.paramsKeys[paramIndex++]
332
const paramOptions = this.params[paramName]
333
const value: ReturnType<NonNullable<Param_GetSet['set']>> = (
334
paramOptions.parser?.set || (v => v)
0 commit comments