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