implement suspense using simpler approach
This commit is contained in:
5 files changed
+27
-83
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user