wip: fix ssr

This commit is contained in:
Jonathan Kelley committed 2021-12-14 22:48:20 -05:00
1 parent 2fd56e7619
commit ded9696930
7 files changed
+37 -55

No files matched your search

+13
View File
@@ -774,3 +774,16 @@ impl IntoVNode<'_> for Arguments<'_> {
cx.text(self)
}
}
impl<'a> IntoVNode<'a> for &Option<VNode<'a>> {
fn into_vnode(self, cx: NodeFactory<'a>) -> VNode<'a> {
let r = self.as_ref().map(|f| f.decouple());
cx.fragment_from_iter(r)
}
}
impl<'a> IntoVNode<'a> for &VNode<'a> {
fn into_vnode(self, _cx: NodeFactory<'a>) -> VNode<'a> {
self.decouple()
}
}