Recursive components allowed
This commit is contained in:
parent
a4740d6c06
commit
48e1d6cfab
|
@ -92,11 +92,11 @@ pub fn Comment(cx: Scope, comment: api::Comment) -> impl IntoView {
|
|||
let comments = comment.comments.clone();
|
||||
move || view! { cx,
|
||||
<ul class="comment-children">
|
||||
/* <For
|
||||
<For
|
||||
each=move || comments.clone()
|
||||
key=|comment| comment.id
|
||||
view=move |comment: api::Comment| view! { cx, <Comment comment /> }
|
||||
/> */
|
||||
/>
|
||||
</ul>
|
||||
}
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue