You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that this control flow calls handleErrorAsync() instead of proceedAsync(), it prematurely exits the request chain.
In 1.13.0, given this edge case was unhandled, the request chain would continue through interceptors registered after CacheWriteInterceptor, so this was a nonissue.
This new control flow changes expectations for Apollo Interceptors, and for my specific use case, I'd need to omit CacheWriteInterceptor from the list of interceptors to reestablish the previous control flow. At this time I'll need to have Apollo marked as 1.13.0 exact version in SPM, until this is adjusted.
Version
1.14.0
Steps to reproduce the behavior
Trigger the edge case outlined above, so anytime there aren't cache records available.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Hi @aduflo-envoy, thanks for reporting the issue. Good news is that this has already been resolved and merged into main. It'll go out in the next release which we're planning to publish this week still.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Summary
Apollo
1.14.0
introduced handling of a new edge case forCacheWriteInterceptor
, noted asCacheWriteError.missingCacheRecords
.In handling this new edge case, a new control flow was introduced:
Given that this control flow calls
handleErrorAsync()
instead ofproceedAsync()
, it prematurely exits the request chain.In
1.13.0
, given this edge case was unhandled, the request chain would continue through interceptors registered afterCacheWriteInterceptor
, so this was a nonissue.This new control flow changes expectations for Apollo Interceptors, and for my specific use case, I'd need to omit
CacheWriteInterceptor
from the list of interceptors to reestablish the previous control flow. At this time I'll need to have Apollo marked as1.13.0
exact version in SPM, until this is adjusted.Version
1.14.0
Steps to reproduce the behavior
Trigger the edge case outlined above, so anytime there aren't cache records available.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: