leptos-use 0.20.0

Collection of essential Leptos utilities inspired by React-Use / VueUse
Documentation
//! Generated by the micro crate split: deprecated forwarding wrappers.

pub mod watch_debounced {
    use ::leptos_use_watch_debounce_throttle::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_watch_debounce_throttle::watch_debounced`](https://docs.rs/leptos-use-watch-debounce-throttle/latest/leptos_use_watch_debounce_throttle/fn.watch_debounced.html).\n\n Add the `leptos-use-watch-debounce-throttle` crate to your dependencies and use `leptos_use_watch_debounce_throttle::watch_debounced` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-watch-debounce-throttle` to your dependencies and use `leptos_use_watch_debounce_throttle::watch_debounced` instead."
    )]
    #[inline(always)]
    pub fn watch_debounced<W, T, DFn, CFn>(
        deps: DFn,
        callback: CFn,
        ms: f64,
    ) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> W + 'static,
        CFn: Fn(&W, Option<&W>, Option<T>) -> T + Clone + 'static,
        W: Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_watch_debounce_throttle::watch_debounced::<W, T, DFn, CFn>(deps, callback, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_watch_debounce_throttle::watch_debounced_with_options`](https://docs.rs/leptos-use-watch-debounce-throttle/latest/leptos_use_watch_debounce_throttle/fn.watch_debounced_with_options.html).\n\n Add the `leptos-use-watch-debounce-throttle` crate to your dependencies and use `leptos_use_watch_debounce_throttle::watch_debounced_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-watch-debounce-throttle` to your dependencies and use `leptos_use_watch_debounce_throttle::watch_debounced_with_options` instead."
    )]
    #[inline(always)]
    pub fn watch_debounced_with_options<W, T, DFn, CFn>(
        deps: DFn,
        callback: CFn,
        ms: f64,
        options: WatchDebouncedOptions,
    ) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> W + 'static,
        CFn: Fn(&W, Option<&W>, Option<T>) -> T + Clone + 'static,
        W: Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_watch_debounce_throttle::watch_debounced_with_options::<W, T, DFn, CFn>(
            deps, callback, ms, options,
        )
    }
}

pub mod watch_throttled {
    use ::leptos_use_watch_debounce_throttle::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_watch_debounce_throttle::watch_throttled`](https://docs.rs/leptos-use-watch-debounce-throttle/latest/leptos_use_watch_debounce_throttle/fn.watch_throttled.html).\n\n Add the `leptos-use-watch-debounce-throttle` crate to your dependencies and use `leptos_use_watch_debounce_throttle::watch_throttled` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-watch-debounce-throttle` to your dependencies and use `leptos_use_watch_debounce_throttle::watch_throttled` instead."
    )]
    #[inline(always)]
    pub fn watch_throttled<W, T, DFn, CFn>(
        deps: DFn,
        callback: CFn,
        ms: f64,
    ) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> W + 'static,
        CFn: Fn(&W, Option<&W>, Option<T>) -> T + Clone + 'static,
        W: Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_watch_debounce_throttle::watch_throttled::<W, T, DFn, CFn>(deps, callback, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_watch_debounce_throttle::watch_throttled_with_options`](https://docs.rs/leptos-use-watch-debounce-throttle/latest/leptos_use_watch_debounce_throttle/fn.watch_throttled_with_options.html).\n\n Add the `leptos-use-watch-debounce-throttle` crate to your dependencies and use `leptos_use_watch_debounce_throttle::watch_throttled_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-watch-debounce-throttle` to your dependencies and use `leptos_use_watch_debounce_throttle::watch_throttled_with_options` instead."
    )]
    #[inline(always)]
    pub fn watch_throttled_with_options<W, T, DFn, CFn>(
        deps: DFn,
        callback: CFn,
        ms: f64,
        options: WatchThrottledOptions,
    ) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> W + 'static,
        CFn: Fn(&W, Option<&W>, Option<T>) -> T + Clone + 'static,
        W: Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_watch_debounce_throttle::watch_throttled_with_options::<W, T, DFn, CFn>(
            deps, callback, ms, options,
        )
    }
}