Skip to content

Commit 8238499

Browse files
committed
chore: remove matchId param from _handleNotFound
1 parent fec4a1b commit 8238499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const resolvePreload = (inner: InnerLoadContext, matchId: string): boolean => {
5050
)
5151
}
5252

53-
const _handleNotFound = (inner: InnerLoadContext, err: NotFoundError, matchId: string) => {
53+
const _handleNotFound = (inner: InnerLoadContext, err: NotFoundError) => {
5454
// Find the route that should handle the not found error
5555
// First check if a specific route is requested to show the error
5656
let routeCursor =
@@ -144,7 +144,7 @@ const handleRedirectAndNotFound = (
144144
err = inner.router.resolveRedirect(err)
145145
throw err
146146
} else {
147-
_handleNotFound(inner, err, match?.id ?? '')
147+
_handleNotFound(inner, err)
148148
throw err
149149
}
150150
}

0 commit comments

Comments
 (0)