beforeUnmount

abstract fun beforeUnmount(target: WithDomNode<Element>, payload: Any? = null, handler: DomLifecycleHandler)

Registers a DomLifecycleHandler on a given target that ist called right before the target is removed from the DOM.

Parameters

target

the element the lifecycle-handler will be registered for

payload

some optional data that might be used by the handler to do its work

handler

defines, what to do (with payload), when target has just been mounted to the DOM