So i took a look at this tutorial https://www.youtube.com/watch?v=f_iIMscTNjQ and within it Philip as he is named explains that making network calls in a composable is a bad habbit. But what about getting the results in a Stateflow in a composable is that to a bad habbit? or is that okey. So the question is that when you call collect on a MutableStateFlow is it okey to do that directly in the compose method and not in the a sideEffect block?
>Solution :
Not only it is not a bad habit, it is the only way to actually use the result in composable. I wouldn’t expose MutableStateFlow but rather only StateFlow, but the rest is just fine