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

+4 -1
View File
@@ -1,4 +1,4 @@
use std::cell::{Ref, RefCell};
use std::cell::{Cell, Ref, RefCell};
use crate::{innerlude::Scheduler, scope_context::ScopeContext, scopes::ScopeId};
use std::rc::Rc;
@@ -47,6 +47,7 @@ pub struct Runtime {
// We use this to track the current scope
pub(crate) scope_stack: RefCell<Vec<ScopeId>>,
pub(crate) rendering: Cell<bool>,
}
impl Runtime {
@@ -57,6 +58,8 @@ impl Runtime {
scope_contexts: Default::default(),
scope_stack: Default::default(),
rendering: Cell::new(true),
});
runtime
}