Retrieving count of documents from firebase and adding a map asynchronously
I'm developing and Android App with jetpack compose and I have a lazyColumn that its every row has items in it. I want to show item count for each row in my LazyColumn. I tried to write a counter function and it is almost working but not properly. It shows item count as null in starting app and when i clicked a row, go to other screen and turn back, then it is showing actual numbers.
Counter Function in ViewModel:
fun countOfAnalyze(currentPairId: String) =...