atick-faisal / Jetpack-Compose-Starter

Starter code for Android Kotlin Project with Jetpack Compose 🚀🚀🚀
https://play.google.com/store/apps/details?id=dev.atick.compose
Apache License 2.0
75 stars 10 forks source link

After and error occurs the loading will is not shown on next loading state #267

Closed atick-faisal closed 1 month ago

atick-faisal commented 1 month ago

How to reproduce: Open app > cancel credentials panel > Click "Sign in with Google" button

Why: During uiState.copy() only loading or error variables are set leaving the other one unchanged In ideal case loading should be set to false if error is found and error should be clears if state goes back to loading