beforeUnmount

fun <T : Element> Tag<T>.beforeUnmount(payload: Any? = null, handler: DomLifecycleHandler)

Convenience method to register lifecycle handler for before a Tag is unmounted

Receiver

the Tag to register the lifecycle handler for

Parameters

handler

DomLifecycleHandler to be called on this Tag before it is removed from the DOM

payload

optional payload the handler requires