Function maple_core::reactive::create_selector [−][src]
pub fn create_selector<F, Out>(derived: F) -> StateHandle<Out> where
F: Fn() -> Out + 'static,
Out: Clone + PartialEq + Debug + 'static,
Creates a memoized value from some signals. Also know as “derived stores”.
Unlike create_memo
, this function will not notify dependents of a change if the output is the same.
That is why the output of the function must implement PartialEq
.