mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 14:32:00 +00:00
fixed SSR compilation errors
This commit is contained in:
parent
a932f72a4f
commit
e08808c2ab
3 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ features = [
|
|||
]
|
||||
|
||||
[features]
|
||||
default = ["web", "hydrate"]
|
||||
default = ["ssr", "hydrate"]
|
||||
web = []
|
||||
csr = ["leptos_reactive/csr"]
|
||||
hydrate = ["leptos_reactive/hydrate"]
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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("");
|
||||
|
|
Loading…
Reference in a new issue