[]previous and next page

RenderedMatch

One entry of the rendered match chain.

One entry of the rendered match chain.

Import#

ts
import type { RenderedMatch } from "@shadow-js/router";

Signature#

ts
interface RenderedMatch {
  readonly id: string;
  readonly pattern: string;
  readonly params: Readonly<Record<string, string>>;
  readonly loaderData: unknown;
  readonly depth: number;
  /** `route` for a matched route, `notFound` for the route that renders not-found UI. */
  readonly kind: "route" | "notFound";
}

Members#

Name Type Description
id readonly id: string
pattern readonly pattern: string
params readonly params: Readonly<Record<string, string>>
loaderData readonly loaderData: unknown
depth readonly depth: number
kind readonly kind: "route" | "notFound" route for a matched route, notFound for the route that renders not-found UI.