Vikas Singh
06/27/2022, 5:59 AMfun initiate(){
viewModelScope.launch {
discoverTag = usecase.tag
}
}
Where tag
is stateflow in usecase which emits the value
The problem here is that the discover tag is only collected for the first time but not when emitted from usecaseJoseph Hawkes-Cates
07/21/2022, 4:34 PMusecase.tag
. If you are calling discoverTag.collect
before initiate
is called then you are collecting on that first MutableStateFlow and not on usecase.tag
.