@tanstack/router-core 1.121.14 → 1.121.15

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.
@@ -690,6 +690,8 @@ class RouterCore {
690
690
  }
691
691
  }
692
692
  }
693
+ (_a = match.beforeLoadPromise) == null ? void 0 : _a.resolve();
694
+ (_b = match.loaderPromise) == null ? void 0 : _b.resolve();
693
695
  updateMatch(match.id, (prev) => ({
694
696
  ...prev,
695
697
  status: redirect.isRedirect(err) ? "redirected" : notFound.isNotFound(err) ? "notFound" : "error",
@@ -701,8 +703,6 @@ class RouterCore {
701
703
  if (!err.routeId) {
702
704
  err.routeId = match.routeId;
703
705
  }
704
- (_a = match.beforeLoadPromise) == null ? void 0 : _a.resolve();
705
- (_b = match.loaderPromise) == null ? void 0 : _b.resolve();
706
706
  (_c = match.loadPromise) == null ? void 0 : _c.resolve();
707
707
  if (redirect.isRedirect(err)) {
708
708
  rendered = true;
@@ -779,6 +779,9 @@ class RouterCore {
779
779
  }
780
780
  }, pendingMs);
781
781
  }
782
+ console.log(`Match ${matchId} is already loading`, {
783
+ match: this.getMatch(matchId)
784
+ });
782
785
  await existingMatch.beforeLoadPromise;
783
786
  executeBeforeLoad = this.getMatch(matchId).status === "error";
784
787
  }