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 whenever {
    use ::leptos_use_watch_with_options::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_whenever::whenever`](https://docs.rs/leptos-use-whenever/latest/leptos_use_whenever/fn.whenever.html).\n\n Add the `leptos-use-whenever` crate to your dependencies and use `leptos_use_whenever::whenever` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-whenever` to your dependencies and use `leptos_use_whenever::whenever` instead."
    )]
    #[inline(always)]
    pub fn whenever<T, DFn, CFn>(source: DFn, callback: CFn) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> bool + 'static,
        CFn: Fn(bool, Option<bool>, Option<T>) -> T + Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_whenever::whenever::<T, DFn, CFn>(source, callback)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_whenever::whenever_with_options`](https://docs.rs/leptos-use-whenever/latest/leptos_use_whenever/fn.whenever_with_options.html).\n\n Add the `leptos-use-whenever` crate to your dependencies and use `leptos_use_whenever::whenever_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-whenever` to your dependencies and use `leptos_use_whenever::whenever_with_options` instead."
    )]
    #[inline(always)]
    pub fn whenever_with_options<T, DFn, CFn>(
        source: DFn,
        callback: CFn,
        options: WatchOptions<impl CallFilter>,
    ) -> impl Fn() + Clone + Send + Sync
    where
        DFn: Fn() -> bool + 'static,
        CFn: Fn(bool, Option<bool>, Option<T>) -> T + Clone + 'static,
        T: Clone + 'static,
    {
        ::leptos_use_whenever::whenever_with_options::<T, DFn, CFn>(source, callback, options)
    }
}