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_event_source {
    use ::leptos_use_event_source::*;

    use codee::Decoder;

    use leptos::prelude::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_event_source::use_event_source`](https://docs.rs/leptos-use-event-source/latest/leptos_use_event_source/fn.use_event_source.html).\n\n Add the `leptos-use-event-source` crate to your dependencies and use `leptos_use_event_source::use_event_source` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-event-source` to your dependencies and use `leptos_use_event_source::use_event_source` instead."
    )]
    #[inline(always)]
    pub fn use_event_source<T, C>(
        url: impl Into<Signal<String>>,
    ) -> UseEventSourceReturn<
        T,
        C,
        C::Error,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn() + Clone + Send + Sync + 'static,
    >
    where
        T: Clone + PartialEq + Send + Sync + 'static,
        C: Decoder<T, Encoded = str> + Send + Sync,
        C::Error: Send + Sync,
    {
        ::leptos_use_event_source::use_event_source::<T, C>(url)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_event_source::use_event_source_with_options`](https://docs.rs/leptos-use-event-source/latest/leptos_use_event_source/fn.use_event_source_with_options.html).\n\n Add the `leptos-use-event-source` crate to your dependencies and use `leptos_use_event_source::use_event_source_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-event-source` to your dependencies and use `leptos_use_event_source::use_event_source_with_options` instead."
    )]
    #[inline(always)]
    pub fn use_event_source_with_options<T, C>(
        url: impl Into<Signal<String>>,
        options: UseEventSourceOptions<T>,
    ) -> UseEventSourceReturn<
        T,
        C,
        C::Error,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn() + Clone + Send + Sync + 'static,
    >
    where
        T: Clone + PartialEq + Send + Sync + 'static,
        C: Decoder<T, Encoded = str> + Send + Sync,
        C::Error: Send + Sync,
    {
        ::leptos_use_event_source::use_event_source_with_options::<T, C>(url, options)
    }
}