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! {