pub fn on_cleanup<'a>(cx: Scope<'a>, f: impl FnOnce() + 'a)
Expand description

Adds a callback that is called when the scope is destroyed.