https://kotlinlang.org logo
#compose
Title
# compose
k

Karthick

03/09/2021, 10:13 AM
can we use mutableState from ViewModel or we must need to use LiveData and use livedata.observeAsState()
t

Timo Drick

03/09/2021, 10:22 AM
It is possible to use MutableState in any class. So it is up to you. val state = mutableStateOf(data)
👍 1