Replies: 1 comment
-
Reading between the lines, you have started with the Actix started and removed the only route, so it runs the 404 during route generation on the initial server setup. During route generation, no You can avoid the panic pretty straightforwardly with if let Some(resp) = use_context::<leptos_actix::ResponseOptions>() {
resp.set_status(actix_web::http::StatusCode::NOT_FOUND);
} (this is defined in user code) There's no reason you'd ever encounter this other than deleting all possible routes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried removing the
<Route path="" view=HomePage/>
line and the whole function block forHomePage
and I get this thread panic when I runcargo leptos watch
Why does it do this?
Beta Was this translation helpful? Give feedback.
All reactions