I don't know if this applies here, but if I consum...
# compose
l
I don't know if this applies here, but if I consume an item from a Flow inside a composable, it will be removed during next recomposition?
c
What do you mean by consume?
l
val uiState: AuthorScreenUiState by viewModel.uiState.collectAsStateWithLifecycle()
when I emit a new uiState, and recomposition occurs, the same state will be there?
l
Oh, thanks! So, SharedFlow is something that "disappears" when collected
z
Once I create MutableStateFlow (or transform Flow using StateIn) the value stays there even after rotating phone
l
I'll take a look into that, thanks 😄