feat: keys
This commit is contained in:
1 parent
dddbcfd5e2
commit
584504feb7
10 files changed
+113
-94
No files matched your search
@@ -1,8 +1,4 @@
|
||||
use crate::{
|
||||
nodes::{DynamicNodeKind, VNode},
|
||||
scopes::ScopeId,
|
||||
virtualdom::VirtualDom,
|
||||
};
|
||||
use crate::{nodes::VNode, scopes::ScopeId, virtualdom::VirtualDom, DynamicNode};
|
||||
|
||||
impl VirtualDom {
|
||||
pub fn drop_scope(&mut self, id: ScopeId) {
|
||||
@@ -16,14 +12,14 @@ impl VirtualDom {
|
||||
|
||||
pub fn drop_template<'a>(&'a mut self, template: &'a VNode<'a>) {
|
||||
for node in template.dynamic_nodes.iter() {
|
||||
match &node.kind {
|
||||
DynamicNodeKind::Text { id, .. } => {}
|
||||
match node {
|
||||
DynamicNode::Text { id, .. } => {}
|
||||
|
||||
DynamicNodeKind::Component { .. } => {
|
||||
DynamicNode::Component { .. } => {
|
||||
todo!()
|
||||
}
|
||||
|
||||
DynamicNodeKind::Fragment { children } => {}
|
||||
DynamicNode::Fragment { children } => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user