About Recompose : ```@Composable fun Foo() { ...
# compose
n
About Recompose :
Copy code
@Composable fun Foo() {
    val text: MutableState<String> = remember { mutableStateOf("") }

    Button(onClick = { text.value = "00000000000" }) {
        Text(text.value)
    }
}
if my text is long ,Button's width will be long too. So ,Button will be Recomposed?
a
The content of the button will recompose to assign the new string value, but the button container itself will not recompose, it will only relayout for new content. The different work stages of a frame, compose => measure => layout => draw, can all invalidate independently and skip if they have no work to do. Earlier stages may invalidate later stages in the same frame.
👍 1