Function use_effect_update_with_deps

Source
pub fn use_effect_update_with_deps<'hook, Callback, Destructor, Dependents>(
    callback: Callback,
    deps: Dependents,
) -> impl 'hook + Hook<Output = ()>
where Callback: FnOnce(&Dependents) -> Destructor + 'static + 'hook, Destructor: FnOnce() + 'static + 'hook, Dependents: PartialEq + 'static + 'hook,
Expand description

This hook is similar to use_effect_update but it accepts dependencies. The signature is exactly the same as the use_effect_with hook.

ยงNote

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

pub fn use_effect_update_with_deps<Callback, Destructor, Dependents>(
    callback: Callback,
    deps: Dependents,
)
where
    Callback: FnOnce(&Dependents) -> Destructor + 'static,
    Destructor: FnOnce() + 'static,
    Dependents: PartialEq + 'static,
{
    /* implementation omitted */
}