@tanstack/router-core 1.121.12 → 1.121.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.121.12",
3
+ "version": "1.121.14",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -2182,7 +2182,7 @@ export class RouterCore<
2182
2182
 
2183
2183
  // Wait for the beforeLoad to resolve before we continue
2184
2184
  await existingMatch.beforeLoadPromise
2185
- executeBeforeLoad = this.getMatch(matchId)!.status !== 'success'
2185
+ executeBeforeLoad = this.getMatch(matchId)!.status === 'error'
2186
2186
  }
2187
2187
  if (executeBeforeLoad) {
2188
2188
  // If we are not in the middle of a load OR the previous load failed, start it