doOnAttach
Performs the given action when this view is attached to a window. If the view is already attached to a window the action will be performed immediately, otherwise the action will be performed after the view is next attached.
The action will only be invoked once, and any listeners will then be removed.