don't subscribe in tasks or event handlers

This commit is contained in:
Evan Almloff committed 2023-08-07 17:55:29 -07:00
1 parent 4447709ac8
commit 0c17bdb737
6 files changed
+35 -16

No files matched your search

+2
View File
@@ -20,6 +20,7 @@ impl VirtualDom {
// update the scope stack
self.runtime.scope_stack.borrow_mut().push(task.scope);
self.runtime.rendering.set(false);
// If the task completes...
if task.task.borrow_mut().as_mut().poll(&mut cx).is_ready() {
@@ -33,5 +34,6 @@ impl VirtualDom {
// Remove the scope from the stack
self.runtime.scope_stack.borrow_mut().pop();
self.runtime.rendering.set(true);
}
}