Hello, I am stuck on a point. I am consuming a RES...
# android
n
Hello, I am stuck on a point. I am consuming a REST Api for list of currencies. First of all I am calling a ViewModel method with EUR and observing live data easily. However, some time later, I need to call same endpoint with different currency but I am unable to use parameterized function for ViewModel. Of course it is working if I call that method again but this time my app is observing two different result, one is for EUR and other is for different currency. How can I fix that issue? MediatorLiveData?, custom job? Btw I am using Coroutines Flow. Thanks!
google 1
stackoverflow 2