@tanstack/solid-router 1.108.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
|
@@ -1586,8 +1586,8 @@ export class Router<
|
|
|
1586
1586
|
}
|
|
1587
1587
|
if (opts._includeValidateSearch && route.options.validateSearch) {
|
|
1588
1588
|
const validate: SearchMiddleware<any> = ({ search, next }) => {
|
|
1589
|
+
const result = next(search)
|
|
1589
1590
|
try {
|
|
1590
|
-
const result = next(search)
|
|
1591
1591
|
const validatedSearch = {
|
|
1592
1592
|
...result,
|
|
1593
1593
|
...(validateSearch(
|
|
@@ -1598,6 +1598,7 @@ export class Router<
|
|
|
1598
1598
|
return validatedSearch
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
// ignore errors here because they are already handled in matchRoutes
|
|
1601
|
+
return result
|
|
1601
1602
|
}
|
|
1602
1603
|
}
|
|
1603
1604
|
middlewares.push(validate)
|