Something changed between v3.0.0-dev14 and v3.0.0-...
# apollo-kotlin
d
Something changed between v3.0.0-dev14 and v3.0.0-alpha01 that is now causing one of my mutations to never return. I'm looking into it more but thought I would post this in case it rings a bell with anybody involved in making those changes.
m
Is this on JVM or Apple ?
d
Android, so I would assume JVM
m
Yup, Android is JVM
Is this using a WebSocketNetworkTransport? or regular HttpNetworkTransport?
d
WebSocketNetworkTransport
👍 1
m
Alright. Yep, there have been a few changes around this
Mmm no that mainly touches AppSync
d
m
Oh wow that's interesting.... I wouldn't expect this to do anything with mutations.
I'm afk right now but will dig a bit more later today
d
np, thx
m
This PR is relatively small. The only thing that could maybe explain a behaviour change is the change from
flatMapLatest
to
flatMapConcat
(here).
d
When I get a chance I'll try changing it back and see what happens... get some sleep
🙏 1
m
Thanks!
IIRC, this was made so that emissions from the ApolloCacheInterceptor would not suspend (so that we can check the cache status just after receiving the response, else receiving the response is always delayed to after potentially writing the cache)
So this changes the supension points.
flatMapLatest
is introducing an intermediate channel that maybe prevents a deadlock or something like this
Going to sleep too, have a good night!
👍 1