We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0968563 commit fe255daCopy full SHA for fe255da
packages/router-core/src/load-matches.ts
@@ -673,8 +673,8 @@ const runLoader = async (
673
const pendingPromise = match._nonReactive.minPendingPromise
674
if (pendingPromise) await pendingPromise
675
676
- if (route._componentsPromise) {
677
- await route._componentsPromise
+ if (isNotFound(e)) {
+ await (route.options.notFoundComponent as any)?.preload?.()
678
}
679
680
handleRedirectAndNotFound(inner, inner.router.getMatch(matchId), e)
0 commit comments