onCreateViewOnce

fun Fragment.onCreateViewOnce(block: () -> Unit): <Error class: unknown class>

Runs the given block once on the next Fragment.onCreateView (actually onViewStateRestored).

Return

Disposable that allows removing the observer.