Skip to content

route

A reactive signal containing the current route information.

import { effect } from "@hellajs/core";
import { route } from "@hellajs/router";
effect(() => {
const r = route();
console.log("Current path:", r.path);
console.log("Params:", r.params);
console.log("Query:", r.query);
// Use r.handler to render the current route's component
});