Skip to content

Commit

Permalink
Squashed 'apollo-ios-pagination/' changes from e89e65da..017a468c
Browse files Browse the repository at this point in the history
017a468c feat: async query pager fetch with cache policy (#444)

git-subtree-dir: apollo-ios-pagination
git-subtree-split: 017a468c3ce4a6444b56294a1dd6cb17fd902e8a
  • Loading branch information
gh-action-runner authored and gh-action-runner committed Jul 31, 2024
1 parent b0090e1 commit 9d26d8e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ actor AsyncGraphQLQueryPagerCoordinator<InitialQuery: GraphQLQuery, PaginatedQue
/// Reloads all data, starting at the first query, resetting pagination state.
/// - Parameter cachePolicy: Preferred cache policy for first-page fetches. Defaults to `returnCacheDataAndFetch`
func refetch(cachePolicy: CachePolicy = .fetchIgnoringCacheData) async {
assert(firstPageWatcher != nil, "To create consistent product behaviors, calling `fetch` before calling `refetch` will use cached data while still refreshing.")
reset()
await fetch(cachePolicy: cachePolicy)
}
Expand Down

0 comments on commit 9d26d8e

Please sign in to comment.