diff --git a/packages/router/src/util.ts b/packages/router/src/util.ts index 42f188c3c98d..60efde1a979b 100644 --- a/packages/router/src/util.ts +++ b/packages/router/src/util.ts @@ -310,12 +310,6 @@ export function replaceParams( const paramNames = params.map((param) => param[0]) const extraArgKeys = Object.keys(args).filter((x) => !paramNames.includes(x)) - // Prepare any unnamed params to be be appended as search params. - const queryParams: string[] = [] - extraArgKeys.forEach((key) => { - queryParams.push(`${key}=${args[key]}`) - }) - // Append any unnamed params as search params. if (extraArgKeys.length) { const extraArgs = Object.fromEntries(