"Welcome to Leptos!"
- {move || match apps.get() { - Some(_d) => view! {"loaded smt"
}.into_view(), - None => view! {"loading..."
}.into_view(), - }} - - - } -} diff --git a/src/components/app_list.rs b/src/components/app_list.rs new file mode 100644 index 0000000..c4b97ca --- /dev/null +++ b/src/components/app_list.rs @@ -0,0 +1,40 @@ +use leptos::*; + +use crate::server::functions::get_all_apps; + + +#[component] +pub fn app_list() -> impl IntoView { + let apps = create_resource(|| (), |_| async move {get_all_apps().await}); + view! { +