pub fn use_debounce_effect_with_deps<'hook, Callback, Dependents>(
callback: Callback,
millis: u32,
deps: Dependents,
) -> impl 'hook + Hook<Output = ()>Expand description
This hook is similar to use_debounce_effect but it accepts dependencies.
Whenever the dependencies are changed, the debounce effect is run again.
To detect changes, dependencies must implement PartialEq.
ยงNote
When used in function components and hooks, this hook is equivalent to:
pub fn use_debounce_effect_with_deps<Callback, Dependents>(
callback: Callback,
millis: u32,
deps: Dependents,
)
where
Callback: FnOnce() + 'static,
Dependents: PartialEq + 'static,
{
/* implementation omitted */
}