morning all, let's say I have this code
internal val canAllowProcess: StateFlow<Boolean> = combine(
_isLoading, _isEligible
) { arg1, arg2 ->
// do something here
}.stateIn(
scope = viewModelScope, // how long this variable should survive
started = SharingStarted.WhileSubscribed(5000),
initialValue = false
)
My question is, will this canAllowProcess emit data only if _isLoading and _isEligible (they are both StateFlow) are both emitting new data? (I thought as long as one flow emit the new data, then canAllowProcess will also be triggered)
Thanks in advance!