pass the article instead of copying

This commit is contained in:
Adam 2024-01-17 11:49:11 -05:00
parent 10987d7d3b
commit ed7387d6c1

View file

@ -9,7 +9,7 @@ pub fn Home() -> impl IntoView {
let articles_view = move || {
data_resource.and_then(|data| {
data.iter()
.map(|article| view! { <Article data=article.clone()/> })
.map(|article| view! { <Article data=article.to_owned()/> })
.collect_view()
})
};