diff --git a/packages/core/src/nodes.rs b/packages/core/src/nodes.rs
index 1ce39a682..bc76e6bb9 100644
--- a/packages/core/src/nodes.rs
+++ b/packages/core/src/nodes.rs
@@ -4,7 +4,7 @@
//! cheap and *very* fast to construct - building a full tree should be quick.
use crate::{
- innerlude::{Element, Properties, Scope, ScopeId, ScopeState},
+ innerlude::{ComponentPtr, Element, Properties, Scope, ScopeId, ScopeState},
lazynodes::LazyNodes,
AnyEvent, Component,
};
@@ -177,11 +177,18 @@ impl Debug for VNode<'_> {
.field("children", &el.children)
.finish(),
VNode::Text(t) => write!(s, "VNode::VText {{ text: {} }}", t.text),
- VNode::Placeholder(_) => write!(s, "VNode::VPlaceholder"),
+ VNode::Placeholder(t) => write!(s, "VNode::VPlaceholder {{ id: {:?} }}", t.id),
VNode::Fragment(frag) => {
write!(s, "VNode::VFragment {{ children: {:?} }}", frag.children)
}
- VNode::Component(comp) => write!(s, "VNode::VComponent {{ fc: {:?}}}", comp.user_fc),
+ VNode::Component(comp) => s
+ .debug_struct("VNode::VComponent")
+ .field("name", &comp.fn_name)
+ .field("fnptr", &comp.user_fc)
+ .field("key", &comp.key)
+ .field("scope", &comp.scope)
+ .field("originator", &comp.originator)
+ .finish(),
}
}
}
@@ -384,7 +391,7 @@ pub struct VComponent<'src> {
pub originator: ScopeId,
pub scope: Cell