function / @typed/vue/Router

routeComponent

Adapt a Vue component to a Typed route handler. Render the full matcher with Typed’s renderer (or the inverse Typed component), keeping route resources alive through SSR.

Package version
1.0.0-beta.13
Category
function

Import

import { routeComponent } from "@typed/vue/Router";

Signatures

export declare function routeComponent<C extends Component>(component: C, options?: ViewOptions): (params: RefSubject.RefSubject<RouteComponentProps<C>>) => Fx.Fx<import("@typed/template/RenderEvent").RenderEvent, import("./view.js").VueError, import("effect/Scope").Scope | import("@typed/template/RenderTemplate").RenderTemplate | import("@typed/id/RandomValues").RandomValues>;

Other public imports

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

Source