Went about it like this, not really happy with it ...
# flow
m
Went about it like this, not really happy with it but seems to work. Any ideas for cleaning this up?
Copy code
private 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))
}