@tanstack/solid-router 1.112.9 → 1.112.11
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 +12 -8
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +12 -8
- package/dist/esm/router.js.map +1 -1
- package/dist/source/router.js +11 -7
- package/dist/source/router.js.map +1 -1
- package/package.json +3 -3
- package/src/router.ts +13 -8
package/dist/cjs/router.cjs
CHANGED
|
@@ -930,14 +930,18 @@ class Router {
|
|
|
930
930
|
}
|
|
931
931
|
if (executeBeforeLoad) {
|
|
932
932
|
try {
|
|
933
|
-
updateMatch(matchId, (prev) =>
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
933
|
+
updateMatch(matchId, (prev) => {
|
|
934
|
+
const prevLoadPromise = prev.loadPromise;
|
|
935
|
+
return {
|
|
936
|
+
...prev,
|
|
937
|
+
loadPromise: routerCore.createControlledPromise(
|
|
938
|
+
function demo() {
|
|
939
|
+
prevLoadPromise == null ? void 0 : prevLoadPromise.resolve();
|
|
940
|
+
}
|
|
941
|
+
),
|
|
942
|
+
beforeLoadPromise: routerCore.createControlledPromise()
|
|
943
|
+
};
|
|
944
|
+
});
|
|
941
945
|
const abortController = new AbortController();
|
|
942
946
|
let pendingTimeout;
|
|
943
947
|
if (shouldPending) {
|