function / @typed/svelte/Router

useCurrentRoute

Reads the structural route owner; navigation does not rewrite this tree.

Package version
1.0.0-beta.13
Category
function

Import

import { useCurrentRoute } from "@typed/svelte/Router";

Signatures

export declare function useCurrentRoute<ER = never>(options?: SourceOptions<CurrentRouteTree, never, CurrentRoute, ER>): import("./AsyncData.js").AsyncState<CurrentRouteTree, ER>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source