Which project does this relate to?
Router
Describe the bug
When throwing notFound() in a loader function, the not found component is always the defaultNotFoundComponent, even when notFoundComponent is assigned in __root__. This applies even if you use notFound({ routeId: rootRouteId }).
Your Example Website or App
https://stackblitz.com/edit/github-51knrjza?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
Go to the about page.
Expected behavior
notFound should follow the default not found rules.
Screenshots or Videos
No response
Platform
- OS: WSL
- Browser: Firefox
- Version: 1.114.27
Additional context
No response
Which project does this relate to?
Router
Describe the bug
When throwing
notFound()in a loader function, the not found component is always thedefaultNotFoundComponent, even whennotFoundComponentis assigned in __root__. This applies even if you usenotFound({ routeId: rootRouteId }).Your Example Website or App
https://stackblitz.com/edit/github-51knrjza?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
Go to the about page.
Expected behavior
notFoundshould follow the default not found rules.Screenshots or Videos
No response
Platform
Additional context
No response