Firebase – observeAsState or collectAsState in Kotlin MultiPlatform application
What I should use for live refresh data on my KMM application with Firestore DB? Use ObserveAsState with: userViewModel.userInfo.observeAsState(null).apply { // view or edit document here } with userInfo LiveData: val userInfo: LiveData<UserInfo?> = liveData { try { emitSource(repo.getUserProfile().flowOn(Dispatchers.IO).asLiveData(Dispatchers.Main)) }catch…