diff --git a/examples/todomvc/Cargo.toml b/examples/todomvc/Cargo.toml index e5f591562..8d301f6ae 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 99fa95aaa..292fe499e 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 2c37fad92..112c4eb1d 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"