Skip to content

Commit

Permalink
chore(deps): update leptos template to leptos 0.7 (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariinkys authored Dec 25, 2024
1 parent e55fed6 commit bfef94e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/template-leptos/Cargo.toml.lte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
leptos = { version = "0.6", features = ["csr"] }
leptos = { version = "0.7", features = ["csr"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
Expand Down
8 changes: 4 additions & 4 deletions templates/template-leptos/src/app.rs.lte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use leptos::leptos_dom::ev::SubmitEvent;
use leptos::*;
use leptos::task::spawn_local;
use leptos::{ev::SubmitEvent, prelude::*};
use serde::{Deserialize, Serialize};
use wasm_bindgen::prelude::*;

Expand All @@ -16,8 +16,8 @@ struct GreetArgs<'a> {

#[component]
pub fn App() -> impl IntoView {
let (name, set_name) = create_signal(String::new());
let (greet_msg, set_greet_msg) = create_signal(String::new());
let (name, set_name) = signal(String::new());
let (greet_msg, set_greet_msg) = signal(String::new());

let update_name = move |ev| {
let v = event_target_value(&ev);
Expand Down
2 changes: 1 addition & 1 deletion templates/template-leptos/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod app;

use app::*;
use leptos::*;
use leptos::prelude::*;

fn main() {
console_error_panic_hook::set_once();
Expand Down

0 comments on commit bfef94e

Please sign in to comment.