Function sycamore::reactive::on_cleanup
source · [−]pub fn on_cleanup<'a>(cx: BoundedScope<'a, 'a>, f: impl FnOnce() + 'a)
Expand description
Adds a callback that is called when the scope is destroyed.
pub fn on_cleanup<'a>(cx: BoundedScope<'a, 'a>, f: impl FnOnce() + 'a)
Adds a callback that is called when the scope is destroyed.