wip: refactor non_keyed diff

This commit is contained in:
Jonathan Kelley committed 2021-08-23 13:41:47 -04:00
1 parent e6f56563bc
commit 082765f687
3 files changed
+62 -136

No files matched your search

+1 -9
View File
@@ -18,14 +18,6 @@ pub enum DiffInstruction<'a> {
node: &'a VNode<'a>,
},
Remove {
child: &'a VNode<'a>,
},
RemoveChildren {
children: &'a [VNode<'a>],
},
Mount {
and: MountType<'a>,
},
@@ -40,7 +32,7 @@ pub enum MountType<'a> {
Absorb,
Append,
Replace { old: &'a VNode<'a> },
ReplaceByElementId { old: ElementId },
ReplaceByElementId { el: ElementId },
InsertAfter { other_node: &'a VNode<'a> },
InsertBefore { other_node: &'a VNode<'a> },
}