This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Function use_reactor_subscription

Source
pub fn use_reactor_subscription<'hook, R>() -> impl 'hook + Hook<Output = UseReactorSubscriptionHandle<R>>
where R: 'static + Reactor + 'hook,
Expand description

A hook to subscribe to the outputs of a Reactor agent.

All outputs sent to current bridge will be collected into a slice.

ยงNote

When used in function components and hooks, this hook is equivalent to:

/// A hook to subscribe to the outputs of a [Reactor] agent.
///
/// All outputs sent to current bridge will be collected into a slice.
pub fn use_reactor_subscription<R>() -> UseReactorSubscriptionHandle<R>
where
    R: 'static + Reactor,
{
    /* implementation omitted */
}