1 min readJun 9, 2019
Excellent article. Thanks.
Just wondering, is it possible to make LiveData emit value immediately upon subscription.
I added this line in onActive and it works, is it the right way?
override fun onActive() {
Timber.d("onActive realm result listener active")
value = results
results.addChangeListener(listener)
}