pub fn use_selector_eq<'hook, S, F, R, E>(
    selector: F,
    eq: E
) -> impl 'hook + Hook<Output = Rc<R>>
where S: Store + 'hook, R: 'static + 'hook, F: Fn(&S) -> R + 'static + 'hook, E: Fn(&R, &R) -> bool + 'static + 'hook,
Expand description

Similar to use_selector, with the additional flexibility of a custom equality check for selected value.

Note

When used in function components and hooks, this hook is equivalent to:

pub fn use_selector_eq<S, F, R, E>(selector: F, eq: E) -> Rc<R>
where
    S: Store,
    R: 'static,
    F: Fn(&S) -> R + 'static,
    E: Fn(&R, &R) -> bool + 'static,
{
    /* implementation omitted */
}