Hi in the view model , would it be possible to call same use case with different values and listen t...
a
Hi in the view model , would it be possible to call same use case with different values and listen to them separately ? flowing code is the idea that i'm trying to achinve. however can't figure out a neat way to do this
Copy code
private val onLiveFxRateResult: LiveData<Result<List<FundingAccountWithCcyPair>>> =
    Transformations.switchMap(onLiveFxRateRequested) {
        it.forEach {
            getFundingAccountsWithCcyPairsUseCase.execute(it.accountCountryCode)
        }
    }
j
I don think so, if you change the value of observer, who is observing will also change value. You can create two livedatas and send different value to them
a
@Jhonatan Sabadi thank you for the response, i fixed it with asyc + live data in use case + mediator
1