diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 965fefda339..7570f9c161b 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -1699,19 +1699,6 @@ export class RouterCore< // _includeValidateSearch: true, // }) - // Accumulate search validation through route chain - const accumulatedSearch = { ...location.search } - for (const route of matchedRoutes) { - try { - Object.assign( - accumulatedSearch, - validateSearch(route.options.validateSearch, accumulatedSearch), - ) - } catch { - // Ignore errors, we're not actually routing - } - } - // Determine params: reuse from state if possible, otherwise parse const lastStateMatchId = last(this.stores.matchesId.state) const lastStateMatch = @@ -1749,7 +1736,7 @@ export class RouterCore< return { matchedRoutes, fullPath: lastRoute.fullPath, - search: accumulatedSearch, + search: location.search, params, } }