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