Skip to the content

Capsid menu

app/routes/not-found.tsx

11 lines and 2 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of not-found.tsx
FunctionLinesComplexityCoveredCRAPMutation
loader6 to 81No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code
NotFound10 to 121No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code

Imports

It imports no other module of this repo. No module of this repo imports it.

Source

/**
 * An address no route claims. A route of its own, inside the legacy public layout (delete with it), so the 404 page carries the
 * public stylesheets: an unmatched URL would otherwise match only the root, which has none. It needs a
 * component to count as a page; the loader throws first, so the root's boundary is what renders.
 */
export function loader(): never {
  throw new Response("Not Found", { status: 404, statusText: "Not Found" });
}

export default function NotFound() {
  return null;
}