What’s the best way of doing this with Rx.. Get c...
# rx
p
What’s the best way of doing this with Rx.. Get config with network call If that config is NOT available go to another endpoint to get the config If the first config is available pass back the JSON and don’t do that second call
g
If the first call emits an error when it's not available, you can use
firstEndpointsObs.onErrorResumeNext(secondEndpointObs)
p
great thanks
u
or when In doubt, you can always wrap the result into Result, and
if
on it in the flatmap
☝️ 2