@tanstack/router-core 1.121.12 → 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.
- package/dist/cjs/router.cjs +6 -3
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +6 -3
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +7 -3
package/dist/esm/router.js
CHANGED
|
@@ -688,6 +688,8 @@ class RouterCore {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
+
(_a = match.beforeLoadPromise) == null ? void 0 : _a.resolve();
|
|
692
|
+
(_b = match.loaderPromise) == null ? void 0 : _b.resolve();
|
|
691
693
|
updateMatch(match.id, (prev) => ({
|
|
692
694
|
...prev,
|
|
693
695
|
status: isRedirect(err) ? "redirected" : isNotFound(err) ? "notFound" : "error",
|
|
@@ -699,8 +701,6 @@ class RouterCore {
|
|
|
699
701
|
if (!err.routeId) {
|
|
700
702
|
err.routeId = match.routeId;
|
|
701
703
|
}
|
|
702
|
-
(_a = match.beforeLoadPromise) == null ? void 0 : _a.resolve();
|
|
703
|
-
(_b = match.loaderPromise) == null ? void 0 : _b.resolve();
|
|
704
704
|
(_c = match.loadPromise) == null ? void 0 : _c.resolve();
|
|
705
705
|
if (isRedirect(err)) {
|
|
706
706
|
rendered = true;
|
|
@@ -777,8 +777,11 @@ class RouterCore {
|
|
|
777
777
|
}
|
|
778
778
|
}, pendingMs);
|
|
779
779
|
}
|
|
780
|
+
console.log(`Match ${matchId} is already loading`, {
|
|
781
|
+
match: this.getMatch(matchId)
|
|
782
|
+
});
|
|
780
783
|
await existingMatch.beforeLoadPromise;
|
|
781
|
-
executeBeforeLoad = this.getMatch(matchId).status
|
|
784
|
+
executeBeforeLoad = this.getMatch(matchId).status === "error";
|
|
782
785
|
}
|
|
783
786
|
if (executeBeforeLoad) {
|
|
784
787
|
try {
|