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 use_intersection_observer {
    use ::leptos_use_element::*;
    use ::leptos_use_intersection_observer::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_intersection_observer::use_intersection_observer`](https://docs.rs/leptos-use-intersection-observer/latest/leptos_use_intersection_observer/fn.use_intersection_observer.html).\n\n Add the `leptos-use-intersection-observer` crate to your dependencies and use `leptos_use_intersection_observer::use_intersection_observer` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-intersection-observer` to your dependencies and use `leptos_use_intersection_observer::use_intersection_observer` instead."
    )]
    #[inline(always)]
    pub fn use_intersection_observer<Els, M, F, RootM>(
        target: Els,
        callback: F,
    ) -> UseIntersectionObserverReturn<
        impl Fn() + Clone + Send + Sync,
        impl Fn() + Clone + Send + Sync,
        impl Fn() + Clone + Send + Sync,
    >
    where
        Els: IntoElementsMaybeSignal<web_sys::Element, M>,
        F: FnMut(Vec<web_sys::IntersectionObserverEntry>, web_sys::IntersectionObserver) + 'static,
        web_sys::Element: IntoElementMaybeSignal<web_sys::Element, RootM>,
    {
        ::leptos_use_intersection_observer::use_intersection_observer::<Els, M, F, RootM>(
            target, callback,
        )
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_intersection_observer::use_intersection_observer_with_options`](https://docs.rs/leptos-use-intersection-observer/latest/leptos_use_intersection_observer/fn.use_intersection_observer_with_options.html).\n\n Add the `leptos-use-intersection-observer` crate to your dependencies and use `leptos_use_intersection_observer::use_intersection_observer_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-intersection-observer` to your dependencies and use `leptos_use_intersection_observer::use_intersection_observer_with_options` instead."
    )]
    #[cfg_attr(feature = "ssr", allow(unused_variables, unused_mut))]
    #[inline(always)]
    pub fn use_intersection_observer_with_options<Els, M, RootEl, RootM, F>(
        target: Els,
        callback: F,
        options: UseIntersectionObserverOptions<RootEl, RootM>,
    ) -> UseIntersectionObserverReturn<
        impl Fn() + Clone + Send + Sync,
        impl Fn() + Clone + Send + Sync,
        impl Fn() + Clone + Send + Sync,
    >
    where
        Els: IntoElementsMaybeSignal<web_sys::Element, M>,
        RootEl: IntoElementMaybeSignal<web_sys::Element, RootM>,
        F: FnMut(Vec<web_sys::IntersectionObserverEntry>, web_sys::IntersectionObserver) + 'static,
    {
        ::leptos_use_intersection_observer::use_intersection_observer_with_options::<
            Els,
            M,
            RootEl,
            RootM,
            F,
        >(target, callback, options)
    }
}