Billy Newman
01/17/2024, 8:15 PMprivate val myState: State = State(value = 0)
someListener.onChange { value -> myState.value = value}
binding.composeView.setContent {
MyComposeView(
state = myState.value // Not recomposing on value changed
)
}
shikasd
01/17/2024, 8:46 PMmutableStateOf
? what kind of state is myState
?Billy Newman
01/17/2024, 8:52 PMshikasd
01/17/2024, 9:16 PMmutableStateOf
in this case and then it should work
regular objects are not observed by composition, while states are