@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.
- package/dist/cjs/router.cjs +5 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +5 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +4 -4
- package/src/router.ts +6 -1
package/dist/cjs/router.cjs
CHANGED
|
@@ -787,8 +787,9 @@ class Router {
|
|
|
787
787
|
handleRedirectAndNotFound(this.getMatch(matchId), err);
|
|
788
788
|
}
|
|
789
789
|
updateMatch(matchId, (prev) => {
|
|
790
|
-
var _a3;
|
|
790
|
+
var _a3, _b3;
|
|
791
791
|
(_a3 = prev.beforeLoadPromise) == null ? void 0 : _a3.resolve();
|
|
792
|
+
(_b3 = prev.loadPromise) == null ? void 0 : _b3.resolve();
|
|
792
793
|
return {
|
|
793
794
|
...prev,
|
|
794
795
|
error: err,
|
|
@@ -1061,6 +1062,9 @@ class Router {
|
|
|
1061
1062
|
try {
|
|
1062
1063
|
await runLoader();
|
|
1063
1064
|
} catch (err) {
|
|
1065
|
+
if (redirects.isResolvedRedirect(err)) {
|
|
1066
|
+
await this.navigate(err);
|
|
1067
|
+
}
|
|
1064
1068
|
}
|
|
1065
1069
|
})();
|
|
1066
1070
|
} else if (status !== "success") {
|