i want render diff view with data but when use sta...
# compose
z
i want render diff view with data but when use state it not change like this:
Copy code
val state: MutableList<String>? by imageList.observeAsState(mutableListOf())
if (state.isNullOrEmpty()) {
    feedbackPlaceView(addImgClick)
} else {
    state?.forEachIndexed { listIndex, s ->
z
It’s usually a red flag if you have a MutableList inside a state object. Are you mutating the list instance itself?
z
if i want update view with data how to do?
i know,must use SnapshotStateList
z
Either use that, or use an immutable list with a MutableState