@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-router",
3
- "version": "1.108.0",
3
+ "version": "1.109.2",
4
4
  "description": "Modern and scalable routing for Solid applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
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)