is there any simpler way to do this?
# android
r
is there any simpler way to do this?
g
not yet, but there is a ticket for that
a
https://youtrack.jetbrains.com/issue/KT-14663 I think currently, there’s nothing simpler.
Copy code
private val _data = MutableLiveData<Data>()

val data: LiveData<Data>
        get() = _data
is what I do
👍 2
g
z
I've wanted this for a while, glad it's being talked about!