implement suspense using simpler approach

This commit is contained in:
Jonathan Kelley committed 2023-07-14 17:12:07 -07:00
1 parent 81075748f6
commit f0128a3150
5 files changed
+27 -83

No files matched your search

+3 -1
View File
@@ -572,10 +572,12 @@ impl VirtualDom {
pub async fn wait_for_suspense(&mut self) {
loop {
if self.suspended_scopes.is_empty() {
break;
return;
}
self.wait_for_work().await;
_ = self.render_immediate();
}
}