From f7adf6f73dfc1e2da0ea3f5f6746ec2efc762b2d Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 29 Sep 2023 13:36:13 -0400 Subject: [PATCH] examples: fix hackernews examples oops --- examples/hackernews/Cargo.toml | 5 +---- examples/hackernews/src/routes/stories.rs | 13 +++++-------- examples/hackernews_axum/src/routes/stories.rs | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/examples/hackernews/Cargo.toml b/examples/hackernews/Cargo.toml index cbf3e9f0d..af07988f4 100644 --- a/examples/hackernews/Cargo.toml +++ b/examples/hackernews/Cargo.toml @@ -16,10 +16,7 @@ actix-web = { version = "4", optional = true, features = ["macros"] } console_log = "1" console_error_panic_hook = "0.1" cfg-if = "1" -leptos = { path = "../../leptos", features = [ - "nightly", - "experimental-islands", -] } +leptos = { path = "../../leptos", features = ["nightly"] } leptos_meta = { path = "../../meta", features = ["nightly"] } leptos_actix = { path = "../../integrations/actix", optional = true } leptos_router = { path = "../../router", features = ["nightly"] } diff --git a/examples/hackernews/src/routes/stories.rs b/examples/hackernews/src/routes/stories.rs index 0fe0ef2fb..4b60a59b3 100644 --- a/examples/hackernews/src/routes/stories.rs +++ b/examples/hackernews/src/routes/stories.rs @@ -41,13 +41,11 @@ pub fn Stories() -> impl IntoView { }; view! { -
{move || if page() > 1 { view! { - impl IntoView { }.into_any() } else { view! { - @@ -79,12 +76,12 @@ pub fn Stories() -> impl IntoView {
"Loading..."

} + fallback=move || view! {

"Loading..."

} set_pending > {move || match stories.get() { None => None, - Some(None) => Some(view! {

"Error loading stories."

}.into_any()), + Some(None) => Some(view! {

"Error loading stories."

}.into_any()), Some(Some(stories)) => { Some(view! {