Module / v1.0.0-beta.13

@typed/react/Router

8 unique exports available through this public import path, including their members and aliases.

import * as Router from "@typed/react/Router";

function

  • CurrentRouteProvider

    function

    Extends the structural mount tree for React and Typed descendants; pass the complete mount route.

  • routeComponent

    function

    Adapts a React component to a Typed matcher handler, preserving reactive params and route-local services.

  • useCurrentPath

    function

    Tracks the canonical pathname and query string used by Typed matchers.

  • useCurrentRoute

    function

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

  • useLocation

    function

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

  • useNavigation

    function

    Shares the exact Typed Navigation service. Execute its commands with useAction or useRuntime.

  • useRoute

    function

    Decoded parameters through Typed’s matcher. The default None fallback stays live outside the ambient mount.

interface

  • RouteOptions

    interface

    Replaces the ambient mount. Outside this root, Typed reports RouteNotFound.