# useRoute

Decodes reactive route parameters with Typed's matcher. By default, leaving
the ambient mount yields None. An explicit root confines the wildcard to that
root, so paths outside it retain the native RouteNotFound failure.

## Signatures

```ts
export declare function useRoute<Rt extends Route.Route.Any, ER = never>(route: Rt, options?: RouteOptions<Rt, ER>): import("./AsyncData.js").AsyncState<Option.Option<Route.Route.Type<Rt>>, Matcher.RouteNotFound | Matcher.RouteDecodeError | Matcher.RouteGuardError | ER>;
```


