[FIXED] How to create LiveData which emits a single event and notifies only last subscribed observer?
Issue I created live data which emits a single event as in this example. My question is next: How to
Read moreIssue I created live data which emits a single event as in this example. My question is next: How to
Read moreIssue I have managed to switch between fragment, but the changes on current fragment doesn’t applied when entering a new
Read moreIssue I have one pretty big complicated ViewModel and I want to split it or build it with few smaller
Read moreIssue The error from the title is returned for the following code, which makes no sense private val _error =
Read moreIssue I have an application where i’m binding my viewmodel to the main activity lifecycle and i do increment a
Read moreIssue var booleanresult : MutableLiveData<Boolean>? = null fun checksubcat() = viewModelScope.launch(Dispatchers.IO) { val trueorfalse : Boolean = productsDao.getSubCatId(subcat_id) booleanresult?.value =
Read moreIssue I’m running an androidTest instrumentation test and I have a method that returns LiveData from a DAO object using
Read moreIssue In a weird scenario, I am able to fetch the response from an API and see it in one
Read moreIssue private val _users = MutableLiveData<List<User>>() val users: LiveData<List<User>> get() = _users fun getUsers() { viewModelScope.launch { _users.value = users()
Read moreIssue I made a toolbar in a BaseActivity to implement a common and the code is as follows. // BaseActivity
Read more