There was an error while loading. Please reload this page.
1 parent ad0beaf commit 608007aCopy full SHA for 608007a
1 file changed
packages/router-core/src/router.ts
@@ -1883,8 +1883,16 @@ export class RouterCore<
1883
const fn =
1884
route.options.params?.stringify ?? route.options.stringifyParams
1885
if (fn) {
1886
- changedParams = true
1887
- Object.assign(nextParams, fn(nextParams))
+ try {
+ Object.assign(nextParams, fn(nextParams))
1888
+ changedParams = true
1889
+ } catch {
1890
+ // Ignore errors here. When a paired parseParams is defined,
1891
+ // extractStrictParams will re-throw during route matching,
1892
+ // storing the error on the match and allowing the route's
1893
+ // errorComponent to render. If no parseParams is defined,
1894
+ // the stringify error is silently dropped.
1895
+ }
1896
}
1897
1898
0 commit comments