From 8686d5aabbd9720ba121fddd1fb8f5473559b670 Mon Sep 17 00:00:00 2001 From: mahmoud-eltahawy <95278610+mahmoud-eltahawy@users.noreply.github.com> Date: Tue, 2 Apr 2024 22:38:07 +0200 Subject: [PATCH] stable todomvc example (#2489) --- examples/todomvc/Cargo.toml | 2 +- examples/todomvc/rust-toolchain.toml | 2 +- examples/todomvc/src/lib.rs | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/todomvc/Cargo.toml b/examples/todomvc/Cargo.toml index e5f5915621..8d301f6ae2 100644 --- a/examples/todomvc/Cargo.toml +++ b/examples/todomvc/Cargo.toml @@ -8,7 +8,7 @@ codegen-units = 1 lto = true [dependencies] -leptos = { path = "../../leptos", features = ["nightly", "serde"] } +leptos = { path = "../../leptos", features = ["serde"] } log = "0.4" console_log = "1" console_error_panic_hook = "0.1.7" diff --git a/examples/todomvc/rust-toolchain.toml b/examples/todomvc/rust-toolchain.toml index 99fa95aaaf..292fe499e3 100644 --- a/examples/todomvc/rust-toolchain.toml +++ b/examples/todomvc/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-03-31" +channel = "stable" diff --git a/examples/todomvc/src/lib.rs b/examples/todomvc/src/lib.rs index 2c37fad92d..112c4eb1d6 100644 --- a/examples/todomvc/src/lib.rs +++ b/examples/todomvc/src/lib.rs @@ -146,7 +146,7 @@ pub fn TodoMVC() -> impl IntoView { window_event_listener(ev::hashchange, move |_| { let new_mode = location_hash().map(|hash| route(&hash)).unwrap_or_default(); - set_mode(new_mode); + set_mode.set(new_mode); }); // Callback to add a todo on pressing the `Enter` key, if the field isn't empty @@ -256,9 +256,9 @@ pub fn TodoMVC() -> impl IntoView { " left"