@tanstack/react-router 1.74.4 → 1.74.6

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.
@@ -785,8 +785,9 @@ class Router {
785
785
  handleRedirectAndNotFound(this.getMatch(matchId), err);
786
786
  }
787
787
  updateMatch(matchId, (prev) => {
788
- var _a3;
788
+ var _a3, _b3;
789
789
  (_a3 = prev.beforeLoadPromise) == null ? void 0 : _a3.resolve();
790
+ (_b3 = prev.loadPromise) == null ? void 0 : _b3.resolve();
790
791
  return {
791
792
  ...prev,
792
793
  error: err,
@@ -1059,6 +1060,9 @@ class Router {
1059
1060
  try {
1060
1061
  await runLoader();
1061
1062
  } catch (err) {
1063
+ if (isResolvedRedirect(err)) {
1064
+ await this.navigate(err);
1065
+ }
1062
1066
  }
1063
1067
  })();
1064
1068
  } else if (status !== "success") {