diff --git a/examples/hackernews_islands_axum/Cargo.toml b/examples/hackernews_islands_axum/Cargo.toml index fc83daf5bc..2e665836f6 100644 --- a/examples/hackernews_islands_axum/Cargo.toml +++ b/examples/hackernews_islands_axum/Cargo.toml @@ -11,17 +11,14 @@ codegen-units = 1 lto = true [dependencies] +leptos_meta = { path = "../../meta" } console_log = "1.0" console_error_panic_hook = "0.1" -leptos = { path = "../../leptos", features = [ - "nightly", - "experimental-islands", -] } +leptos = { path = "../../leptos", features = ["experimental-islands"] } leptos_axum = { path = "../../integrations/axum", optional = true, features = [ "experimental-islands", ] } -leptos_meta = { path = "../../meta", features = ["nightly"] } -leptos_router = { path = "../../router", features = ["nightly"] } +leptos_router = { path = "../../router" } log = "0.4" simple_logger = "4.0" serde = { version = "1.0", features = ["derive"] } diff --git a/examples/hackernews_islands_axum/index.html b/examples/hackernews_islands_axum/index.html index 98fed87e4b..7aa44a70d6 100644 --- a/examples/hackernews_islands_axum/index.html +++ b/examples/hackernews_islands_axum/index.html @@ -1,8 +1,8 @@ - + - - - - - - \ No newline at end of file + + + + + + diff --git a/examples/hackernews_islands_axum/rust-toolchain.toml b/examples/hackernews_islands_axum/rust-toolchain.toml index 99fa95aaaf..292fe499e3 100644 --- a/examples/hackernews_islands_axum/rust-toolchain.toml +++ b/examples/hackernews_islands_axum/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-03-31" +channel = "stable" diff --git a/examples/hackernews_islands_axum/src/error_template.rs b/examples/hackernews_islands_axum/src/error_template.rs index b1bd543d2b..49ff1bb725 100644 --- a/examples/hackernews_islands_axum/src/error_template.rs +++ b/examples/hackernews_islands_axum/src/error_template.rs @@ -1,4 +1,4 @@ -use leptos::{view, Errors, For, IntoView, RwSignal, View}; +use leptos::{view, Errors, For, IntoView, RwSignal, SignalGet, View}; // A basic function to display errors served by the error boundaries. Feel free to do more complicated things // here than just displaying them @@ -11,11 +11,11 @@ pub fn error_template(errors: Option>) -> View {

"Errors"

impl IntoView { let (pending, set_pending) = create_signal(false); let hide_more_link = move || { - pending() + pending.get() || stories .map(|stories| { stories.as_ref().map(|s| s.len() < 28).unwrap_or_default() diff --git a/examples/hackernews_islands_axum/src/routes/story.rs b/examples/hackernews_islands_axum/src/routes/story.rs index 3c49952eda..ff1c097df3 100644 --- a/examples/hackernews_islands_axum/src/routes/story.rs +++ b/examples/hackernews_islands_axum/src/routes/story.rs @@ -17,7 +17,7 @@ pub async fn fetch_story( pub fn Story() -> impl IntoView { let params = use_params_map(); let story = create_resource( - move || params().get("id").cloned().unwrap_or_default(), + move || params.get().get("id").cloned().unwrap_or_default(), move |id| async move { if id.is_empty() { Ok(RefCell::new(None)) @@ -94,7 +94,7 @@ pub fn Toggle(children: Children) -> impl IntoView { view! {
    impl IntoView { let params = use_params_map(); let user = create_resource( - move || params().get("id").cloned().unwrap_or_default(), + move || params.get().get("id").cloned().unwrap_or_default(), move |id| async move { if id.is_empty() { Ok(None)