Matti MK
10/08/2021, 7:03 AMprivate val networkRequestPrecondition: Flow<Pair<String, String>> =
onContinueClicked.filter { it }
.zip(
combine(
email.filter { it.count() >= MIN_INPUT_LENGTH },
password.filter { it.count() >= MIN_INPUT_LENGTH })
{ e, p -> Pair(e, p) }
) { _, p -> p }
private val createRequest: Flow<Resource<Response>> = networkRequestPrecondition.transform {
emit(Resource.Loading())
emit(repository.log(it.first, it.second))
}