diff --git a/src/app.rs b/src/app.rs
index 66d86a0..0ae5007 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -28,7 +28,7 @@ pub fn App() -> impl IntoView {
// Form component for adding new items.
// Component to display the list of items.
-
+
}
}
diff --git a/src/components/items_list.rs b/src/components/items_list.rs
index 202c92b..08d3187 100644
--- a/src/components/items_list.rs
+++ b/src/components/items_list.rs
@@ -5,12 +5,12 @@ use leptos::*;
use crate::models::item::Item;
#[component]
-pub fn ItemsList(items: Vec- ) -> impl IntoView {
+pub fn ItemsList(items: ReadSignal>) -> impl IntoView {
view! {
{ "Items" }
- {items.iter().enumerate().map(|(i, item)| view! {
+ {move || items.get().iter().enumerate().map(|(i, item)| view! {
-
{ item.name.clone() } - { item.description.clone() }