แล้วก็ส่งต่อให้ VM ทำ business logic เช่น //ใน v...
# thailand
k
แล้วก็ส่งต่อให้ VM ทำ business logic เช่น //ใน viewmodel
Copy code
//sink
private val _error: MutableProperty<Boolean>

val errors: Observable<Boolean> 
  get() = _error.observable

init {
  textChanged.filter { it.length == 6 }.flatMap { networkAction() }.not().bindTo(_error)
}