Seth Madison
11/23/2022, 7:36 AMstore.labels bindTo view
and then provide a BaseMviView.handleLabel
or something. In an Android app, I think labels often need to be handled at the activity/fragment level and it would be nice to be able to tie them to the lifecycle.Arkadii Ivanov
11/23/2022, 10:33 AMhandleLabel
method to your view and write something like store.labels bindTo view::handleLabel
Seth Madison
11/23/2022, 4:25 PMinfix fun <T> Flow<T>.bindTo(consumer: suspend (T) -> Unit)