working Rsx

This commit is contained in:
2026-01-25 18:58:24 +01:00
parent f6a4bbd8ac
commit a9ecc8da8b
3 changed files with 91 additions and 57 deletions
+6
View File
@@ -179,6 +179,12 @@ impl Context {
}
impl Scope {
pub fn new() -> Arc<Self> {
Arc::new(Self {
children: Mutex::new(Vec::new()),
})
}
pub fn child<F: Fn(&Arc<Context>) -> View + Send + Sync + 'static>(
self: &Arc<Self>,
child: F,