Function freya::prelude::use_on_unmount
pub fn use_on_unmount<D>(destroy: D)where
D: FnOnce() + 'static,
👎Deprecated: Use
use_on_destroy
instead, which has the same functionality. This is deprecated because of the introduction of use_on_create
which is better mirrored by use_on_destroy
. The reason why use_on_create
is not use_on_mount
is because of potential confusion with dioxus::events::onmounted
.