dioxus_hooks

Function use_on_unmount

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