diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index bdb8c7f864d..cac19984fb3 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -2182,7 +2182,7 @@ export class RouterCore< // Wait for the beforeLoad to resolve before we continue await existingMatch.beforeLoadPromise - executeBeforeLoad = this.getMatch(matchId)!.status !== 'success' + executeBeforeLoad = this.getMatch(matchId)!.status === 'error' } if (executeBeforeLoad) { // If we are not in the middle of a load OR the previous load failed, start it