Skip to content
RED SAGSkills
medium10 pts · first answer countsjetpack-composekotlin-flowlifecycle

collectAsStateWithLifecycle benefit

Why is collectAsStateWithLifecycle() usually preferred over collectAsState() when a Compose screen on Android reads a Flow from a ViewModel?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions