fixed SSR compilation errors

This commit is contained in:
Jose Quesada 2022-12-08 16:13:12 -06:00
parent a932f72a4f
commit e08808c2ab
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ features = [
]
[features]
default = ["web", "hydrate"]
default = ["ssr", "hydrate"]
web = []
csr = ["leptos_reactive/csr"]
hydrate = ["leptos_reactive/hydrate"]

View file

@ -343,7 +343,7 @@ where
} else {
*component.children.borrow_mut() = (items_fn)()
.into_iter()
.map(|child| Some(EachItem::new((each_fn)(child).into_view(cx))))
.map(|child| Some(EachItem::new((each_fn)(cx, child).into_view(cx))))
.collect();
}
}

View file

@ -12,7 +12,7 @@ impl View {
View::Text(node) => node.content,
View::Component(node) => {
let content = node
.child
.children
.into_iter()
.map(|node| node.render_to_string())
.join("");