React Corsair - v0.0.11
    Preparing search index...

    Function useRoute

    • Returns the route controller provided by the enclosing Outlet.

      Returns RouteController

    • Returns the controller of the route if it was matched by the router, or throws an error if there's no such controller.

      Type Parameters

      • R extends Route<any, any, any, any>

      Parameters

      • route: R

        The route to look up.

      Returns RouteController<InferParams<R>, InferData<R>, InferContext<R>>