Function dioxus_signals::selector
source · pub fn selector<R: PartialEq>(
f: impl FnMut() -> R + 'static
) -> ReadOnlySignal<R>
Expand description
Creates a new Selector. The selector will be run immediately and whenever any signal it reads changes.
Selectors can be used to efficiently compute derived data from signals.