TanStackT
TanStack6mo ago
19 replies
conventional-black

NotFoundComponent defined at the route level not rendering.

Consider this folder structure.
__root.tsx -> notFoundComponent defined
settings/
  route.tsx -> notFoundComponent defined and <Outlet /> returned
  index.tsx -> component for /settings/

There are no loaders defined. When I visit /settings/unknown the notFoundComponent defined in __root.tsx is shown, not the one under settings. What am I missing.
Was this page helpful?