Chris Fillmore
08/05/2022, 5:43 PMApolloSubscriptionCall.Callback
had onFailure
and onTerminated
. How are these exposed in Apollo 3.x?
Can I .catch
?
subscriptionCall.toFlow()
.catch { ... }
.collect { ... }
onConnected
behaviour still exposed?Stylianos Gakis
08/05/2022, 6:05 PM.onStart {}
fit your use case?
Also yeah you can definitely use the .catch operator there for anything that may be thrown.
I'd guess this should have similar functionality to what old "onFailure" was, but I'd definitely read the docs about what old onFailure was.Chris Fillmore
08/05/2022, 6:07 PMonStart
, let me take a look