function / @typed/react/Router

useLocation

Tracks the same currentEntry source used by Typed matchers and links.

Package version
1.0.0-beta.13
Category
function

Import

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

Signatures

export declare function useLocation<ER = never>(options?: ReactiveOptions<Destination, never, Navigation | Scope.Scope, ER>): AsyncState<Destination, ER>;

Other public imports

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

Source