@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.
@@ -416,8 +416,8 @@ class Router {
416
416
  }
417
417
  if (opts._includeValidateSearch && route.options.validateSearch) {
418
418
  const validate = ({ search: search3, next }) => {
419
+ const result = next(search3);
419
420
  try {
420
- const result = next(search3);
421
421
  const validatedSearch = {
422
422
  ...result,
423
423
  ...validateSearch(
@@ -427,6 +427,7 @@ class Router {
427
427
  };
428
428
  return validatedSearch;
429
429
  } catch {
430
+ return result;
430
431
  }
431
432
  };
432
433
  middlewares.push(validate);