function / @typed/react/Router

useCurrentRoute

The stable structural mount tree; useLocation observes the changing destination separately.

Package version
1.0.0-beta.13
Category
function

Import

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

Signatures

export declare function useCurrentRoute(): CurrentRouteTree;

Other public imports

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

Source