File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ class GraphQLQueryPagerCoordinator<InitialQuery: GraphQLQuery, PaginatedQuery: G
64
64
Task { [ weak self] in
65
65
guard let self else { return }
66
66
let ( canLoadNext, canLoadPrevious) = await self . pager. canLoadPages
67
- self . canLoadNext = canLoadNext
68
- self . canLoadPrevious = canLoadPrevious
67
+ self . $ canLoadNext. mutate { $0 = canLoadNext }
68
+ self . $ canLoadPrevious. mutate { $0 = canLoadPrevious }
69
69
}
70
70
}
71
71
await subscriptions. store ( subscription: publishSubscriber)
@@ -89,9 +89,9 @@ class GraphQLQueryPagerCoordinator<InitialQuery: GraphQLQuery, PaginatedQuery: G
89
89
}
90
90
91
91
/// Whether or not we can load the next page. Initializes with a `false` value that is updated after the initial fetch.
92
- var canLoadNext : Bool = false
92
+ @ Atomic var canLoadNext : Bool = false
93
93
/// Whether or not we can load the previous page. Initializes with a `false` value that is updated after the initial fetch.
94
- var canLoadPrevious : Bool = false
94
+ @ Atomic var canLoadPrevious : Bool = false
95
95
96
96
/// Reset all pagination state and cancel all in-flight operations.
97
97
func reset( ) {
You can’t perform that action at this time.
0 commit comments