wip: bottom up dropping

This commit is contained in:
Jonathan Kelley committed 2021-08-05 22:23:41 -04:00
1 parent 687cda1b6d
commit f2334c17be
21 files changed
+682 -679

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ impl WebviewDom<'_> {
self.registry
}
}
impl<'bump> RealDom<'bump> for WebviewDom<'bump> {
impl<'bump> RealDom for WebviewDom<'bump> {
fn raw_node_as_any(&self) -> &mut dyn std::any::Any {
todo!()
// self.edits.push(PushRoot { root });
+2 -2
View File
@@ -118,7 +118,7 @@ impl<T: Properties + 'static> WebviewRenderer<T> {
// Serialize the edit stream
let edits = {
let mut edits = Vec::new();
lock.rebuild(&mut real, &mut edits).unwrap();
lock.rebuild(&mut edits).unwrap();
serde_json::to_value(edits).unwrap()
};
@@ -140,7 +140,7 @@ impl<T: Properties + 'static> WebviewRenderer<T> {
// Serialize the edit stream
let edits = {
let mut edits = Vec::new();
lock.rebuild(&mut real, &mut edits).unwrap();
lock.rebuild(&mut edits).unwrap();
serde_json::to_value(edits).unwrap()
};