Function yewdux::functional::use_selector_eq_with_deps
source · pub fn use_selector_eq_with_deps<'hook, S, F, R, D, E>(
selector: F,
eq: E,
deps: D
) -> impl 'hook + Hook<Output = Rc<R>>
Expand description
Similar to use_selector_with_deps
, but also allows an equality function, similar to
use_selector_eq
Note
When used in function components and hooks, this hook is equivalent to:
pub fn use_selector_eq_with_deps<S, F, R, D, E>(selector: F, eq: E, deps: D) -> Rc<R>
where
S: Store,
R: 'static,
D: Clone + PartialEq + 'static,
F: Fn(&S, &D) -> R + 'static,
E: Fn(&R, &R) -> bool + 'static,
{
/* implementation omitted */
}