notFound

Create a not-found error object recognized by TanStack Router.

Throw this from loaders/actions to trigger the nearest notFoundComponent. Use routeId to target a specific route's not-found boundary. If throw is true, the error is thrown instead of returned.

API Docs

Return

A not-found error object that can be thrown or returned.