Skip to content

Commit 5fa6871

Browse files
committed
remove early check
1 parent 80b7b5e commit 5fa6871

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/router-core/src/load-matches.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -764,13 +764,6 @@ const loadRouteMatch = async (
764764
} else {
765765
const prevMatch = inner.router.getMatch(matchId)!
766766

767-
// Check if the match was preloaded and has a redirect or notFound error
768-
// We check _nonReactive.error because reactive error updates may be in a pending transition
769-
const error = prevMatch._nonReactive.error || prevMatch.error
770-
if (error && (isRedirect(error) || isNotFound(error))) {
771-
handleRedirectAndNotFound(inner, prevMatch, error)
772-
}
773-
774767
// there is a loaderPromise, so we are in the middle of a load
775768
if (prevMatch._nonReactive.loaderPromise) {
776769
// do not block if we already have stale data we can show

0 commit comments

Comments
 (0)