diff --git a/leptos_dom/Cargo.toml b/leptos_dom/Cargo.toml index e6fbc0676..c385eed17 100644 --- a/leptos_dom/Cargo.toml +++ b/leptos_dom/Cargo.toml @@ -65,7 +65,7 @@ features = [ ] [features] -default = ["web", "hydrate"] +default = ["ssr", "hydrate"] web = [] csr = ["leptos_reactive/csr"] hydrate = ["leptos_reactive/hydrate"] diff --git a/leptos_dom/src/components/each.rs b/leptos_dom/src/components/each.rs index 40c2a8ef2..99b41d09b 100644 --- a/leptos_dom/src/components/each.rs +++ b/leptos_dom/src/components/each.rs @@ -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(); } } diff --git a/leptos_dom/src/ssr.rs b/leptos_dom/src/ssr.rs index 6da2d0012..7b77a1bf3 100644 --- a/leptos_dom/src/ssr.rs +++ b/leptos_dom/src/ssr.rs @@ -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("");