Skip to content

Commit b6e6a8a

Browse files
committed
Rc VList
1 parent 83589f5 commit b6e6a8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/yew/src/html/conversion/into_prop_value.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ where
143143
impl IntoPropValue<VNode> for VList {
144144
#[inline]
145145
fn into_prop_value(self) -> VNode {
146-
VNode::VList(self)
146+
VNode::VList(Rc::new(self))
147147
}
148148
}
149149
impl IntoPropValue<VNode> for VText {
@@ -163,7 +163,7 @@ impl IntoPropValue<VNode> for () {
163163
impl IntoPropValue<VNode> for ChildrenRenderer<VNode> {
164164
#[inline]
165165
fn into_prop_value(self) -> VNode {
166-
VNode::VList(self.into())
166+
VNode::VList(Rc::new(self.into()))
167167
}
168168
}
169169

@@ -204,7 +204,7 @@ impl IntoPropValue<ChildrenRenderer<VNode>> for AttrValue {
204204
impl IntoPropValue<VNode> for Vec<VNode> {
205205
#[inline]
206206
fn into_prop_value(self) -> VNode {
207-
VNode::VList(VList::with_children(self, None))
207+
VNode::VList(Rc::new(VList::with_children(self, None)))
208208
}
209209
}
210210

0 commit comments

Comments
 (0)