notFound()

A server function can end the route as missing

The link below opens this same route with run set. The loader then awaits missingItem(). That function throws notFound(). The router skips this component and renders the route's not-found view.

Run notFound()

All examples