dioxus_lib::prelude

Function use_on_unmount

source
pub fn use_on_unmount<D>(destroy: D)
where D: FnOnce() + 'static,
👎Deprecated: Use use_drop instead, which has the same functionality.