I have a BehaviorSubject where my tableview is bound to through RxDataSources.
Besides that, I have a pull to refresh which creates an observable that updates the data and updates the data in the BehaviorSubject so that my UITableView updates correctly.
Now the question is, how do I handle the error handling for whenever my API call fails?
Few options that I have thought of was:
- Subscribe to the observer's
onErrorand call theonErrorof myBehaviorSubject\ - Somehow try to
concat? orbind(to: ..) - Let another subscriber in my
ViewControllersubscribe besides that my tableview subscribes to theBehaviorSubject.
Any suggestions?