Join Slack
Powered by
can we use mutableState from ViewModel or we must ...
# 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
Open in Slack
Previous
Next