@tanstack/react-router 1.109.0 → 1.109.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/router.cjs +2 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +2 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +2 -1
package/package.json
CHANGED
package/src/router.ts
CHANGED
|
@@ -1611,8 +1611,8 @@ export class Router<
|
|
|
1611
1611
|
}
|
|
1612
1612
|
if (opts._includeValidateSearch && route.options.validateSearch) {
|
|
1613
1613
|
const validate: SearchMiddleware<any> = ({ search, next }) => {
|
|
1614
|
+
const result = next(search)
|
|
1614
1615
|
try {
|
|
1615
|
-
const result = next(search)
|
|
1616
1616
|
const validatedSearch = {
|
|
1617
1617
|
...result,
|
|
1618
1618
|
...(validateSearch(
|
|
@@ -1623,6 +1623,7 @@ export class Router<
|
|
|
1623
1623
|
return validatedSearch
|
|
1624
1624
|
} catch {
|
|
1625
1625
|
// ignore errors here because they are already handled in matchRoutes
|
|
1626
|
+
return result
|
|
1626
1627
|
}
|
|
1627
1628
|
}
|
|
1628
1629
|
middlewares.push(validate)
|