mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-02 10:54:15 -05:00
Update leptos to v0.5.0-beta. Fix tests. Apply cargo clippy
This commit is contained in:
parent
8303a66707
commit
270b153e61
4 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -285,7 +285,7 @@ cfg_if! { if #[cfg(feature = "storage")] {
|
|||
fn get_store_signal(
|
||||
initial_value: MaybeRwSignal<ColorMode>,
|
||||
storage_signal: Option<RwSignal<ColorMode>>,
|
||||
_storage_key: &String,
|
||||
_storage_key: &str,
|
||||
_storage_enabled: bool,
|
||||
_storage: StorageType,
|
||||
_listen_to_storage_changes: bool,
|
||||
|
|
Loading…
Add table
Reference in a new issue