https://kotlinlang.org logo
#rx
Title
m

michaelzinn

11/02/2017, 1:31 PM
How do I do state? E.g. if I have two buttons, PLUS and MINUS that should increment/decrement a number, should I use a BehaviourSubject initialized with 0, zip it with the Observable of the buttons, increment/decrement the number and pipe the result back into the BehaviorSubject? Or is there a better way?