can we put more data like this
GauravPandey123 opened this issue · 0 comments
GauravPandey123 commented
val result: LiveData<Resource<List>> = Transformations.switchMap(query) { q,t ->
if (q.isNullOrEmpty()) {
AbsentLiveData.create()
} else {
sportRepository.searchTeam(q)
}
}