From ba2f0f3ac78b1e31fb9d5f9fabdaef99900f2293 Mon Sep 17 00:00:00 2001 From: Joseph Cruz Date: Tue, 2 Apr 2024 10:57:52 -0400 Subject: [PATCH] ci(examples/error-boundary): use stable syntax --- examples/error_boundary/Cargo.toml | 2 +- examples/error_boundary/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/error_boundary/Cargo.toml b/examples/error_boundary/Cargo.toml index 97aa7f6b73..0bcca6c417 100644 --- a/examples/error_boundary/Cargo.toml +++ b/examples/error_boundary/Cargo.toml @@ -8,7 +8,7 @@ codegen-units = 1 lto = true [dependencies] -leptos = { path = "../../leptos", features = ["csr", "nightly"] } +leptos = { path = "../../leptos", features = ["csr"] } console_log = "1" log = "0.4" console_error_panic_hook = "0.1.7" diff --git a/examples/error_boundary/src/lib.rs b/examples/error_boundary/src/lib.rs index 9dea35c450..d8f6d41a5a 100644 --- a/examples/error_boundary/src/lib.rs +++ b/examples/error_boundary/src/lib.rs @@ -5,7 +5,8 @@ pub fn App() -> impl IntoView { let (value, set_value) = create_signal(Ok(0)); // when input changes, try to parse a number from the input - let on_input = move |ev| set_value(event_target_value(&ev).parse::()); + let on_input = + move |ev| set_value.set(event_target_value(&ev).parse::()); view! {

"Error Handling"