MartinKoleff / KareFitnessApp

Android fitness app made in Jetpack Compose.
MIT License
4 stars 0 forks source link

[Bug] Race condition in Login/Register use cases. #49

Closed MartinKoleff closed 8 months ago

MartinKoleff commented 8 months ago

In Auth use cases (Login and Register) the credentials validation happens before the repository (and the datasource) is called. The flows are sometimes not awaited. The bug also happened because l was using map instead of collect. CollectLatest caused multiple flows emitting runtime error.