implement suspense using simpler approach
This commit is contained in:
5 files changed
+27
-83
No files matched your search
@@ -85,6 +85,8 @@ impl VirtualDom {
|
||||
|
||||
if scope.suspended.get() {
|
||||
self.suspended_scopes.insert(scope.id);
|
||||
} else if !self.suspended_scopes.is_empty() {
|
||||
_ = self.suspended_scopes.remove(&scope.id);
|
||||
}
|
||||
|
||||
// rebind the lifetime now that its stored internally
|
||||
|
||||
Reference in new issue
Block a user