feat: mutations

This commit is contained in:
Jonathan Kelley committed 2021-08-08 15:15:16 -04:00
1 parent f2334c17be
commit fac42339c2
17 files changed
+464 -275

No files matched your search

+17 -17
View File
@@ -88,26 +88,26 @@ impl<T: Properties + 'static> WebviewRenderer<T> {
let channel = vir.get_event_sender();
struct WebviewBridge {}
impl RealDom for WebviewBridge {
fn raw_node_as_any(&self) -> &mut dyn std::any::Any {
todo!()
}
// impl RealDom for WebviewBridge {
// fn raw_node_as_any(&self) -> &mut dyn std::any::Any {
// todo!()
// }
fn must_commit(&self) -> bool {
false
}
// fn must_commit(&self) -> bool {
// false
// }
fn commit_edits<'a>(&mut self, edits: &mut Vec<DomEdit<'a>>) {}
// fn commit_edits<'a>(&mut self, edits: &mut Vec<DomEdit<'a>>) {}
fn wait_until_ready<'s>(
&'s mut self,
) -> std::pin::Pin<Box<dyn std::future::Future<Output = ()> + 's>> {
//
Box::pin(async {
//
})
}
}
// fn wait_until_ready<'s>(
// &'s mut self,
// ) -> std::pin::Pin<Box<dyn std::future::Future<Output = ()> + 's>> {
// //
// Box::pin(async {
// //
// })
// }
// }
let mut real_dom = WebviewBridge {};
// async_std::task::spawn_local(vir.run(&mut real_dom));