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
Please fill in the versions you're currently using:
apollo-ios SDK version: 0.45.0 (But wasn't changed in 0.46.0 from what I can see)
Xcode version: All
Swift version: All
Package manager: SPM
Steps to reproduce
Call
ApolloStore.clearCache(callbackQueue:completion:)
with a callbackQueue that is not .main.
Further details
If this is correct and I'm not missing anything I'm happy to submit a PR with my proposed change (or something different if I'm missing a better solution).
The text was updated successfully, but these errors were encountered:
@isaacressler - thanks for raising this issue. Your corrected implementation looks correct; if you're happy to submit a PR we can merge it in. I'm trying to figure out how we can get a test in to ensure we've got this covered in the future.
iresslerCMM
changed the title
ApolloStore doesn't use the provided callbackQueue in clearCache.
ApolloClient doesn't use the provided callbackQueue in clearCache.
Aug 11, 2021
Bug report
The
ApolloClient
's implementation ofclearCache(callbackQueue:completion:)
fromApolloClientProtocol
does not use the callbackQueue.It is currently implemented like this:
Which drops the callbackQueue without ever using it.
I would expect the implementation to be like this:
Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 0.45.0 (But wasn't changed in 0.46.0 from what I can see)Steps to reproduce
Call
with a callbackQueue that is not
.main
.Further details
If this is correct and I'm not missing anything I'm happy to submit a PR with my proposed change (or something different if I'm missing a better solution).
The text was updated successfully, but these errors were encountered: