pub fn use_interval_deps<D>(
    hooks: &mut Hooks<'_>,
    duration: Duration,
    run_immediately: bool,
    dependencies: D,
    func: impl 'static + Send + Sync + FnMut(&D)
)
where D: 'static + Send + Sync + Clone + Debug + PartialEq,
Expand description

Run cb every duration, passing in the current value of dependencies.

This should be used when the callback depends on some value that can change over time.