Skip to content

Commit

Permalink
ci(examples/error-boundary): use stable syntax (#2496)
Browse files Browse the repository at this point in the history
  • Loading branch information
agilarity authored Apr 5, 2024
1 parent e5af145 commit 03ac690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/error_boundary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 2 additions & 1 deletion examples/error_boundary/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>());
let on_input =
move |ev| set_value.set(event_target_value(&ev).parse::<i32>());

view! {
<h1>"Error Handling"</h1>
Expand Down

0 comments on commit 03ac690

Please sign in to comment.