addAfterDestroyHook

abstract fun addAfterDestroyHook(hook: () -> Unit): Boolean

The supplied function is called after the component is removed from the DOM.