diff --git a/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/ComposeExtensions.kt b/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/ComposeExtensions.kt index 7458cd9..117190a 100644 --- a/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/ComposeExtensions.kt +++ b/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/ComposeExtensions.kt @@ -11,6 +11,7 @@ import androidx.compose.ui.platform.LocalLifecycleOwner import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach @@ -27,6 +28,10 @@ class StartScope(private val scope: CoroutineScope) { fun SharedFlow.launch(onEach: suspend (T) -> Unit) { this.onEach(onEach).launchIn(scope) } + + fun Flow.launch(onEach: suspend (T) -> Unit) { + this.onEach(onEach).launchIn(scope) + } } interface EffectScope { diff --git a/screen-state b/screen-state index ea31ab2..a0425cb 160000 --- a/screen-state +++ b/screen-state @@ -1 +1 @@ -Subproject commit ea31ab26de443ed5e6bb67ce594e3ce8d5f04ff3 +Subproject commit a0425cb9196ba728309b1f2ab616df6ad1168b90