Replace remember with LaunchEffect

This commit is contained in:
Alexander Nozik 2022-10-26 17:31:52 +03:00
parent 4cc227268c
commit 4c7ba62a5a
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -54,7 +54,7 @@ suspend fun main() {
}
}
remember {
LaunchedEffect(Unit){
dataFlow.onEach { event ->
println("Received $event")
if (event is IntDataEvent) {