Implemented exectution to Context

This commit is contained in:
2026-01-28 23:41:54 +01:00
parent 1df6cd4c5e
commit 93ba2f4a78
4 changed files with 22 additions and 14 deletions
+3 -1
View File
@@ -35,10 +35,12 @@ impl Rsx {
}
pub fn view(&self, context: Arc<Context>) -> View {
let executor = context.get_executor();
for scope in &self.0 {
match scope {
RsxScope::Static(scope_fn) => {
let scope = Scope::new();
let scope = Scope::new(executor.clone());
(scope_fn)(&scope);
context.scopes.lock().unwrap().push(scope)
}