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>>
where S: Store + 'hook, R: 'static + 'hook, D: Clone + PartialEq + 'static + 'hook, F: Fn(&S, &D) -> R + 'static + 'hook, E: Fn(&R, &R) -> bool + 'static + 'hook,
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 */
}