Hello! If I do ```Content(viewStates.collectAsSt...
# compose
d
Hello! If I do
Copy code
Content(viewStates.collectAsState().value)

@Composable fun Content(state: ViewState) {
  Text(text = state.title)
  Text(text = state.description)
}
Would both Texts be always recomposed even if (for example) there were 5 emissions and in all 5 only title was changing?
a
The entire
Content
function will recompose, but each individual
Text
function may skip/return early if the parameters are stable and match the previous recomposition
d
Great! I hoped this would be the case, because I'd like to have unidirectional flow with whole "screen" state being in one large data class. "stable" = "marked as @Immutable"? Or being a data class is enough?
z
d
Thank you! I also want to reread your article on recomposition, it's great!