only add non-static components to the borrowed_props list
This commit is contained in:
1 parent
4f83c1b86d
commit
65be035506
1 file changed
+4
-2
@@ -477,8 +477,10 @@ impl<'src> ScopeState {
|
|||||||
let mut props = self.borrowed_props.borrow_mut();
|
let mut props = self.borrowed_props.borrow_mut();
|
||||||
for node in element.dynamic_nodes {
|
for node in element.dynamic_nodes {
|
||||||
if let DynamicNode::Component(comp) = node {
|
if let DynamicNode::Component(comp) = node {
|
||||||
let unbounded = unsafe { std::mem::transmute(comp as *const VComponent) };
|
if !comp.static_props {
|
||||||
props.push(unbounded);
|
let unbounded = unsafe { std::mem::transmute(comp as *const VComponent) };
|
||||||
|
props.push(unbounded);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user