hi just a quick question , where are Obervables us...
# android
u
hi just a quick question , where are Obervables usually put in a kotlin android app ?
o
Hi. What do you mean? In wich layer?
u
yes where should i code it ?
k
Personally I never use them. I use LiveData instead. And I construct LiveData in service (i.e., Room repository), viewmodel (so view can react), and view layers (I’m playing with this as a concept to feed UI interactions back to my viewmodel by just calling
myLiveData.value = XYZ
in the view onClick or something).