MediumConceptKotlin and Jetpack Compose
What is state hoisting in Compose?
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.
PreviousA Compose screen recomposes too often and drops frames. How do you troubleshoot?Next A coroutine launched in a ViewModel continues after the screen is closed and crashes. What is wrong?
More on Kotlin and Jetpack Compose
Flashcards for this topic- MediumA Compose screen recomposes too often and drops frames. How do you troubleshoot?
- HardA coroutine launched in a ViewModel continues after the screen is closed and crashes. What is wrong?
- MediumExplain the difference between StateFlow and SharedFlow.
- MediumHow do you handle one-off events such as navigation or toasts from a ViewModel?