HardScenarioKotlin and Jetpack Compose
A coroutine launched in a ViewModel continues after the screen is closed and crashes. What is wrong?
This answer is part of Pro
36 of 305 Mobile engineer (Android / iOS) answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is state hoisting in Compose?Next Explain the difference between StateFlow and SharedFlow.