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 e59c800 commit fc38d91Copy full SHA for fc38d91
packages/router-core/src/router.ts
@@ -1821,16 +1821,8 @@ export class RouterCore<
1821
destMatchResult.routeParams['**']
1822
: trimPathRight(interpolatedNextTo)
1823
1824
- let globalNotFoundRouteId: string | undefined
1825
- if (isGlobalNotFound) {
1826
- if (this.options.notFoundRoute) {
1827
- destRoutes = [...destRoutes, this.options.notFoundRoute]
1828
- } else {
1829
- globalNotFoundRouteId = findGlobalNotFoundRouteId(
1830
- this.options.notFoundMode,
1831
- destRoutes,
1832
- )
1833
- }
+ if (isGlobalNotFound && this.options.notFoundRoute) {
+ destRoutes = [...destRoutes, this.options.notFoundRoute]
1834
}
1835
1836
// If there are any params, we need to stringify them
0 commit comments