Function use_drop
pub fn use_drop(drop: impl FnOnce() + 'static)Expand description
Run a callback for when the component gets dropped. Useful to clean resources.
use_drop(|| {
println!("Dropping this component.");
});pub fn use_drop(drop: impl FnOnce() + 'static)Run a callback for when the component gets dropped. Useful to clean resources.
use_drop(|| {
println!("Dropping this component.");
});