I am getting empty list while fetching data from FirebaseFirestore in Android(Kotlin and jetpack Compose)
i am constantly getting list of size 0 while fetching data from firebaseFirestore, which have data in it,
here is the code to take a look at...
Model...
data class Product(
val productId: String,
val title: String,
val description: String,
val price: Int,
val image: Int?,
val category: String,
val isPopular: Boolean,
)
Repository implementation..
override suspend fun getProduct(): Any = withContext(Dispatchers.IO) {
return@withContext try{
val...