This feature is experimental. Please share your experiences so we know what to keep or change.
Runs a callback when the given element or its ancestors were kept.
A function that unsubscribes the callback.
When the element is destroyed, the callback will be unsubscribed automatically.