Don't use boxed cell slice, use a refcell instead

This commit is contained in:
Jonathan Kelley committed 2023-07-19 12:08:13 -07:00
1 parent f69b84bf34
commit 2871c8bb4d
7 files changed
+24 -119

No files matched your search

+3
View File
@@ -571,12 +571,15 @@ impl VirtualDom {
/// The mutations will be thrown out, so it's best to use this method for things like SSR that have async content
pub async fn wait_for_suspense(&mut self) {
loop {
// println!("waiting for suspense {:?}", self.suspended_scopes);
if self.suspended_scopes.is_empty() {
return;
}
// println!("waiting for suspense");
self.wait_for_work().await;
// println!("Rendered immediately");
_ = self.render_immediate();
}
}