-
To improve how my site works (sidebar + workspace area) I want to use context in the URL and nested routing to load the correct data for the workspace. I’ve tried around a bit without anything working, then tried to use the example from the book. <Router>
<main class="text-slate-100 bg-black flex flex-row h-screen w-screen select-anaheim">
<Routes>
<Route path="/contacts" view=|cx| view! { cx, "list" }>
<Route path=":id" view=|cx| view! { cx, "info" }/>
<Route path="" view=|cx| view! { cx, "nothing" }/>
</Route>
//... routes for login and create
</Routes>
</main>
</Router> Behavior:
I am currently running with commit 1d7235d. I get the same behavior with |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Jun 22, 2023
Replies: 1 comment 1 reply
-
Your parent route doesn't have an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dikkadev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your parent route doesn't have an
<Outlet/>
component so it doesn't show the child anywhere.