Start a new topic

Query callback is called twice

Why when I run a query with KCSLinkedAppdataStore:queryWithQuery: withCompletionBlock the block is called twice with the same results?

With KCSCachePolicyBoth the completion block is called both when the local cache is read and when the network is queried. See http://devcenter.kinvey.com/ios/guides/caching-offline#Policies
KCSCachePolicyBoth, changing it to KCSCachePolicyLocalFirst fixes the problem, thanks

Does your store have a cache policy?
Login or Signup to post a comment