mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: was disposing of Suspense Owner too early
This commit is contained in:
parent
67fe4cc540
commit
4b539b524b
1 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,12 @@ where
|
|||
self.view
|
||||
.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position, escape)
|
||||
});
|
||||
|
||||
// if self.owner drops here, it can be disposed before the asynchronous rendering process
|
||||
// has actually happened
|
||||
// instead, we'll stuff it into the cleanups of its parent so that it will remain alive at
|
||||
// least as long as the parent does
|
||||
Owner::on_cleanup(move || drop(self.owner));
|
||||
}
|
||||
|
||||
fn hydrate<const FROM_SERVER: bool>(
|
||||
|
|
Loading…
Reference in a new issue