fixed example

This commit is contained in:
Maccesch 2023-09-12 15:29:09 +01:00
parent e31709ba84
commit d28beb1b5e
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "leptos-use" name = "leptos-use"
version = "0.7.0-beta" version = "0.7.0-rc"
edition = "2021" edition = "2021"
authors = ["Marc-Stefan Cassola"] authors = ["Marc-Stefan Cassola"]
categories = ["gui", "web-programming"] categories = ["gui", "web-programming"]

View file

@ -90,4 +90,4 @@ To scaffold a new function quickly you can run `template/createfn.sh`. It requir
|---------------|---------------------------| |---------------|---------------------------|
| <= 0.3 | 0.3 | | <= 0.3 | 0.3 |
| 0.4, 0.5, 0.6 | 0.4 | | 0.4, 0.5, 0.6 | 0.4 |
| main | 0.5.0-alpha/beta | | main | 0.5.0-alpha/beta/rc |

View file

@ -5,7 +5,7 @@ use leptos_use::signal_debounced;
#[component] #[component]
fn Demo() -> impl IntoView { fn Demo() -> impl IntoView {
let (input, set_input) = create_signal("".to_string()); let (input, set_input) = create_signal("".to_string());
let debounced = signal_debounced(input, 1000.0); let debounced: Signal<String> = signal_debounced(input, 1000.0);
view! { view! {
<div> <div>