Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions packages/router-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1883,8 +1883,15 @@ export class RouterCore<
const fn =
route.options.params?.stringify ?? route.options.stringifyParams
if (fn) {
changedParams = true
Object.assign(nextParams, fn(nextParams))
try {
Object.assign(nextParams, fn(nextParams))
changedParams = true
} catch {
// ignore errors here because they will be properly handled
// during route matching via parseParams/extractStrictParams,
// which stores the error on the match and renders the
// route's errorComponent
}
}
}
}
Expand Down