use_effect_with
function · ferroui-view · v0.5.0
fn use_effect_with<D: PartialEq + 'static>(deps: D, f: impl FnOnce(&D) -> () + 'static)
Calls f with deps once the controls of the run are in place, on the
first run and on every run whose deps differ from those of the call
before. What f registers with on_cleanup runs
before the next call and when the component is taken out.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.