diff --git a/Cargo.toml b/Cargo.toml index 9ea6d2b..6de42f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ repository = "https://github.com/Synphonyte/leptos-use" homepage = "https://leptos-use.rs" [dependencies] -leptos = "0.5.0-alpha2" +leptos = "0.5.0-beta" wasm-bindgen = "0.2" js-sys = "0.3" default-struct-builder = "0.5" diff --git a/src/signal_debounced.rs b/src/signal_debounced.rs index f602408..71da1d1 100644 --- a/src/signal_debounced.rs +++ b/src/signal_debounced.rs @@ -19,7 +19,7 @@ signal_filtered!( /// # #[component] /// # fn Demo() -> impl IntoView { /// let (input, set_input) = create_signal(""); - /// let debounced = signal_debounced(input, 1000.0); + /// let debounced: Signal<&'static str> = signal_debounced(input, 1000.0); /// # /// # view! { } /// # } @@ -36,7 +36,7 @@ signal_filtered!( /// # #[component] /// # fn Demo() -> impl IntoView { /// let (input, set_input) = create_signal(""); - /// let debounced = signal_debounced_with_options( + /// let debounced: Signal<&'static str> = signal_debounced_with_options( /// input, /// 1000.0, /// DebounceOptions::default().max_wait(Some(500.0)) diff --git a/src/signal_throttled.rs b/src/signal_throttled.rs index 6b550a9..9040d10 100644 --- a/src/signal_throttled.rs +++ b/src/signal_throttled.rs @@ -19,7 +19,7 @@ signal_filtered!( /// # #[component] /// # fn Demo() -> impl IntoView { /// let (input, set_input) = create_signal(""); - /// let throttled = signal_throttled(input, 1000.0); + /// let throttled: Signal<&'static str> = signal_throttled(input, 1000.0); /// # /// # view! { } /// # } @@ -36,7 +36,7 @@ signal_filtered!( /// # #[component] /// # fn Demo() -> impl IntoView { /// let (input, set_input) = create_signal(""); - /// let throttled = signal_throttled_with_options( + /// let throttled: Signal<&'static str> = signal_throttled_with_options( /// input, /// 1000.0, /// ThrottleOptions::default().leading(false).trailing(true) diff --git a/src/use_color_mode.rs b/src/use_color_mode.rs index 0804293..3bffcb5 100644 --- a/src/use_color_mode.rs +++ b/src/use_color_mode.rs @@ -285,7 +285,7 @@ cfg_if! { if #[cfg(feature = "storage")] { fn get_store_signal( initial_value: MaybeRwSignal, storage_signal: Option>, - _storage_key: &String, + _storage_key: &str, _storage_enabled: bool, _storage: StorageType, _listen_to_storage_changes: bool,