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