This repository reproduces an issue where a later binding stream which has completed causes the initial binding to be "completed" as well.
- Run the app.
- Click the button.
- Click the button again - no response.
This is because it seems the subscription in viewDidLoad
is not active anymore.
The button ran this code:
let d = PublishSubject<AppInput>()
self.c.amb(d).take(1).bindTo(self.vm.appInput).disposed(by: self.bag)
d.onNext(.showOptions) // Completes D. vm.appInput is completed as well.