@tanstack/react-router 1.112.9 → 1.112.10
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 +4 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +4 -2
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +3 -1
package/dist/cjs/router.cjs
CHANGED
|
@@ -937,8 +937,10 @@ class Router {
|
|
|
937
937
|
updateMatch(matchId, (prev) => ({
|
|
938
938
|
...prev,
|
|
939
939
|
loadPromise: routerCore.createControlledPromise(() => {
|
|
940
|
-
var _a2;
|
|
941
|
-
(_a2 = prev.loadPromise) == null ? void 0 : _a2.
|
|
940
|
+
var _a2, _b2;
|
|
941
|
+
if (((_a2 = prev.loadPromise) == null ? void 0 : _a2.status) !== "resolved") {
|
|
942
|
+
(_b2 = prev.loadPromise) == null ? void 0 : _b2.resolve();
|
|
943
|
+
}
|
|
942
944
|
}),
|
|
943
945
|
beforeLoadPromise: routerCore.createControlledPromise()
|
|
944
946
|
}));
|