pass the article instead of copying
This commit is contained in:
parent
10987d7d3b
commit
ed7387d6c1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ pub fn Home() -> impl IntoView {
|
||||||
let articles_view = move || {
|
let articles_view = move || {
|
||||||
data_resource.and_then(|data| {
|
data_resource.and_then(|data| {
|
||||||
data.iter()
|
data.iter()
|
||||||
.map(|article| view! { <Article data=article.clone()/> })
|
.map(|article| view! { <Article data=article.to_owned()/> })
|
||||||
.collect_view()
|
.collect_view()
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue