Function dioxus_core::prelude::use_hook_with_cleanup
source · pub fn use_hook_with_cleanup<T: Clone + 'static>(
hook: impl FnOnce() -> T,
cleanup: impl FnOnce(T) + 'static
) -> T
Expand description
Use a hook with a cleanup function