Replace remember with LaunchEffect
This commit is contained in:
parent
4cc227268c
commit
4c7ba62a5a
@ -54,7 +54,7 @@ suspend fun main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
remember {
|
LaunchedEffect(Unit){
|
||||||
dataFlow.onEach { event ->
|
dataFlow.onEach { event ->
|
||||||
println("Received $event")
|
println("Received $event")
|
||||||
if (event is IntDataEvent) {
|
if (event is IntDataEvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user