Skip to content
Merged
Changes from all commits
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
12 changes: 10 additions & 2 deletions packages/router-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1883,8 +1883,16 @@ 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. When a paired parseParams is defined,
// extractStrictParams will re-throw during route matching,
// storing the error on the match and allowing the route's
// errorComponent to render. If no parseParams is defined,
// the stringify error is silently dropped.
}
}
}
}
Expand Down
Loading