Skip to content

Commit 9d26d8e

Browse files
gh-action-runnergh-action-runner
authored andcommitted
Squashed 'apollo-ios-pagination/' changes from e89e65da..017a468c
017a468c feat: async query pager fetch with cache policy (#444) git-subtree-dir: apollo-ios-pagination git-subtree-split: 017a468c3ce4a6444b56294a1dd6cb17fd902e8a
1 parent b0090e1 commit 9d26d8e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/ApolloPagination/AsyncGraphQLQueryPagerCoordinator.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ actor AsyncGraphQLQueryPagerCoordinator<InitialQuery: GraphQLQuery, PaginatedQue
184184
/// Reloads all data, starting at the first query, resetting pagination state.
185185
/// - Parameter cachePolicy: Preferred cache policy for first-page fetches. Defaults to `returnCacheDataAndFetch`
186186
func refetch(cachePolicy: CachePolicy = .fetchIgnoringCacheData) async {
187-
assert(firstPageWatcher != nil, "To create consistent product behaviors, calling `fetch` before calling `refetch` will use cached data while still refreshing.")
188187
reset()
189188
await fetch(cachePolicy: cachePolicy)
190189
}

0 commit comments

Comments
 (0)