import { Outlet } from "solid-app-router";
function PageWrapper () {
return <div>
<h1> We love our users! </h1>
<Outlet/>
<Link href="/">Back Home</Link>
</div>
}
<Route path="/users" element={<PageWrapper/>}>
<Route path="/" element={<Users/>} />
<Route path="/:id" element={<User/>} />
</Route>
In this example, it seems that there is no way to get the "id" parameter from within the PageWrapper component. This is, as far as I can tell, due to parameters not being held by the global Router context, but rather the local Route context. Are there any workarounds for this?
In this example, it seems that there is no way to get the "id" parameter from within the PageWrapper component. This is, as far as I can tell, due to parameters not being held by the global Router context, but rather the local Route context. Are there any workarounds for this?