pub trait Subscriber: ReactiveNode {
// Required methods
fn add_source(&self, source: AnySource);
fn clear_sources(&self, subscriber: &AnySubscriber);
}
Expand description
Any type that can track reactive values (like an effect or a memo).
Required Methods§
Sourcefn add_source(&self, source: AnySource)
fn add_source(&self, source: AnySource)
Adds a subscriber to this subscriber’s list of dependencies.
Sourcefn clear_sources(&self, subscriber: &AnySubscriber)
fn clear_sources(&self, subscriber: &AnySubscriber)
Clears the set of sources for this subscriber.