Interface ActiveRoute

An object describing the current route.

interface ActiveRoute {
    element: Promise<undefined | Element>;
    path: string[];
    route: string[];
}

Properties

Properties

element: Promise<undefined | Element>

A promise resolving to the element associated with the activated route or undefined if not found.

path: string[]

The current path as an array of path segments, e.g. ['posts', '42', 'comments'];

route: string[]

The activated route as an array of segments, e.g. ['posts', '*', 'comments'].