-
-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.7] Dropped SendWrapper panic #2907
Comments
Thanks, the repro is great here! Could you do me a favor and test #2911 against your non-minimal example? I think it should fix the issue but not entirely sure. |
Don't think so, tested in my project and with the reproduction, still panics. Leptos Dependencies leptos = { git = "https://github.com/leptos-rs/leptos.git", features = [
"nightly",
], rev = "refs/pull/2911/head" }
leptos_meta = { git = "https://github.com/leptos-rs/leptos.git", rev = "refs/pull/2911/head" }
leptos_router = { git = "https://github.com/leptos-rs/leptos.git", features = [
"nightly",
], rev = "refs/pull/2911/head" }
leptos_axum = { git = "https://github.com/leptos-rs/leptos.git", rev = "refs/pull/2911/head" } Panic
Backtrace
|
Thanks, turns out I was testing it incorrectly. Here's a simpler reproduction: #[component]
pub fn App() -> impl IntoView {
view! {
<Router>
<Routes fallback=|| ()>
<ParentRoute path=path!("") view=Parent>
<Route path=path!("") view=Child/>
</ParentRoute>
</Routes>
</Router>
}
}
#[component]
fn Parent() -> impl IntoView {
view! {
<Outlet/>
<Suspense>
<Suspense>
<A href="/new" attr:class="link link-primary">
New Item
</A>
</Suspense>
</Suspense>
}
}
#[component]
pub fn Child() -> impl IntoView {
view! { <Suspense>{move || {}}</Suspense> }
} The panic is caused by the Each of three conditions is required for it not to remove the
If any of those three is removed, it does not panic. If I'll have to look at it more to figure out what the underlying issue is, though. |
This should incidentally be fixed by #2912, which I think is a good idea in any case but which doesn't address the actual problem here. |
Describe the bug
The application panics with the error message: "Dropped SendWrapper variable from a thread different to the one it has been created with."
When accessing the following code I get a panic in the server. The reproduction is finicky, managed to generate a minimal reproduction copying my project structure. Some changes stops reproducing the panic, like removing the nested
<Suspense>
.Leptos Dependencies
To Reproduce
Steps to reproduce the behavior:
start-axum-0.7
templateExpected behavior
The application should render the components for the given route without crashing.
Error Message
**Error Log with Backtrace**
The text was updated successfully, but these errors were encountered: