Created
September 10, 2017 10:07
-
-
Save charlag/917042d905ce5d3af5735daa4d6ec813 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val viewInput = Observable.combineLatest( | |
nameInput.startWith(“”), | |
checkBoxChecks.startWith(false) | |
) { name, selected → State(name, selected) } | |
val dataFromDb = database.dao().loadById(…).map { dataFromDb → State(…) } | |
val state = Observable.merge(viewInput, dataFromDb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment