* clear away prelude on dioxus * clippy * wip - drop prelude from dioxus-html * docs clippy * wip * more fixe * delete all preludes * doc... * better export * merge some imports * fewer global imports * global incremental renderer * fix cargo doc
7 lines
194 B
Rust
7 lines
194 B
Rust
use dioxus_core::use_drop;
|
|
|
|
#[deprecated(note = "Use `use_drop` instead, which has the same functionality.")]
|
|
pub fn use_on_unmount<D: FnOnce() + 'static>(destroy: D) {
|
|
use_drop(destroy);
|
|
}
|