wip: tests added for new iterative
This commit is contained in:
1 parent
2ce0752a9c
commit
24572b63de
6 files changed
+191
-69
No files matched your search
@@ -38,12 +38,12 @@ pub enum VNode<'src> {
|
||||
impl<'src> VNode<'src> {
|
||||
pub fn key(&self) -> Option<&'src str> {
|
||||
match &self {
|
||||
VNode::Text(_) => todo!(),
|
||||
VNode::Element(_) => todo!(),
|
||||
VNode::Fragment(_) => todo!(),
|
||||
VNode::Component(_) => todo!(),
|
||||
VNode::Suspended(_) => todo!(),
|
||||
VNode::Anchor(_) => todo!(),
|
||||
VNode::Element(el) => el.key,
|
||||
VNode::Component(c) => c.key,
|
||||
VNode::Fragment(f) => f.key,
|
||||
VNode::Text(_t) => None,
|
||||
VNode::Suspended(s) => None,
|
||||
VNode::Anchor(f) => None,
|
||||
}
|
||||
}
|
||||
pub fn direct_id(&self) -> ElementId {
|
||||
|
||||
Reference in new issue
Block a user