@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.
@@ -1285,27 +1285,17 @@ class RouterCore {
1285
1285
  this.triggerOnReady(innerLoadContext);
1286
1286
  }
1287
1287
  try {
1288
- await new Promise((resolveAll, rejectAll) => {
1289
- ;
1290
- (async () => {
1291
- try {
1292
- for (let i = 0; i < innerLoadContext.matches.length; i++) {
1293
- const beforeLoad = this.handleBeforeLoad(innerLoadContext, i);
1294
- if (utils.isPromise(beforeLoad)) await beforeLoad;
1295
- }
1296
- const max = innerLoadContext.firstBadMatchIndex ?? innerLoadContext.matches.length;
1297
- for (let i = 0; i < max; i++) {
1298
- innerLoadContext.matchPromises.push(
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) {