Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useMatches

Returns the active route matches, useful for accessing loaderData for parent/child routes or the route "handle" property

function useMatches(): {
id: string;
pathname: string;
params: Params<string>;
data: unknown;
handle: unknown;
}
[]
;
§
useMatches(): {
id: string;
pathname: string;
params: Params<string>;
data: unknown;
handle: unknown;
}
[]
[src]

§Return Type

§
{
id: string;
pathname: string;
params: Params<string>;
data: unknown;
handle: unknown;
}
[]
[src]