-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose for Desktop doesn't emit lifecycle events, only states #4835
Comments
Looking at the impl of
Apparently it uses implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.8.1") |
Very strange that I'm seeing no indication (warning, error, log output) indicating this. |
It's expected because |
Rechecked what's going on here.
It does. Even without this extra dependency. You can receive it via: lifecycle.addObserver(object : LifecycleEventObserver {
override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) {
println("New Event: $event")
}
})
It looks like behavior of flowOf(1, 2, 3)
.flowOn(Dispatchers.Main.immediate)
.collect {
println("collect: $it")
} Will print nothing and hang on |
1.6.10-rc03.
iOS:
Desktop:
Observed via:
The text was updated successfully, but these errors were encountered: