-
So, in the backend, I have: let leptos_routes = generate_route_list(web::App);
Router::new()
.route_service("/pkg/*rest", server_dir.clone())
.route_service("/assets/*rest", server_dir)
.leptos_routes(&state, leptos_routes, {
move || web::shell(leptos_options.clone())
})
.merge(get_api_router(state.clone()))
.layer(TraceLayer::new_for_http())
.with_state(state) And in the frontend, I have: #[component]
pub fn App() -> impl IntoView {
view! {
<SyncEngineProvider>
<Router>
<Routes fallback=NotFound>
<Route path=path!("/auth") view=Auth />
<ParentRoute path=path!("/") view=Sidebar >
<Route path=path!("") view=Home />
<Route path=path!(":owner_name/:repo_name") view=RepositoryPage />
<Route path=path!(":owner_name/:repo_name/:tab") view=RepositoryPage />
</ParentRoute>
</Routes>
</Router>
</SyncEngineProvider>
}
} But on the backend, doing: tracing::info!("{:?}", leptos_routes); Shows that only the What gives? |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Dec 12, 2024
Replies: 1 comment 6 replies
-
If you remove Hard to know what could be going on, otherwise. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
dnaaun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you remove
SyncEngineProvider
, does it generate the routes correctly?Hard to know what could be going on, otherwise.