@tanstack/router-core 1.131.18 → 1.131.19
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 +11 -21
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +11 -21
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +14 -25
package/dist/cjs/router.cjs
CHANGED
|
@@ -1285,27 +1285,17 @@ class RouterCore {
|
|
|
1285
1285
|
this.triggerOnReady(innerLoadContext);
|
|
1286
1286
|
}
|
|
1287
1287
|
try {
|
|
1288
|
-
|
|
1289
|
-
;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
this.loadRouteMatch(innerLoadContext, i)
|
|
1300
|
-
);
|
|
1301
|
-
}
|
|
1302
|
-
await Promise.all(innerLoadContext.matchPromises);
|
|
1303
|
-
resolveAll();
|
|
1304
|
-
} catch (err) {
|
|
1305
|
-
rejectAll(err);
|
|
1306
|
-
}
|
|
1307
|
-
})();
|
|
1308
|
-
});
|
|
1288
|
+
for (let i = 0; i < innerLoadContext.matches.length; i++) {
|
|
1289
|
+
const beforeLoad = this.handleBeforeLoad(innerLoadContext, i);
|
|
1290
|
+
if (utils.isPromise(beforeLoad)) await beforeLoad;
|
|
1291
|
+
}
|
|
1292
|
+
const max = innerLoadContext.firstBadMatchIndex ?? innerLoadContext.matches.length;
|
|
1293
|
+
for (let i = 0; i < max; i++) {
|
|
1294
|
+
innerLoadContext.matchPromises.push(
|
|
1295
|
+
this.loadRouteMatch(innerLoadContext, i)
|
|
1296
|
+
);
|
|
1297
|
+
}
|
|
1298
|
+
await Promise.all(innerLoadContext.matchPromises);
|
|
1309
1299
|
const readyPromise = this.triggerOnReady(innerLoadContext);
|
|
1310
1300
|
if (utils.isPromise(readyPromise)) await readyPromise;
|
|
1311
1301
|
} catch (err) {
|