File tree Expand file tree Collapse file tree
Application/DevLogPresentation/Sources/PushNotification Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ private extension PushNotificationListFeature {
153153 switch action {
154154 case . refresh:
155155 state. nextCursor = nil
156- return fetchNotificationsPageEffect ( query: state. query, cursor: nil , showsIndicator: false )
156+ return fetchNotificationsEffect (
157+ query: state. query,
158+ cursor: nil ,
159+ existingCount: 0 ,
160+ showsIndicator: false
161+ )
157162 case . fetchNotifications:
158163 state. nextCursor = nil
159164 return fetchNotificationsEffect ( query: state. query, cursor: nil , existingCount: 0 )
@@ -270,10 +275,11 @@ private extension PushNotificationListFeature {
270275 func fetchNotificationsEffect(
271276 query: PushNotificationQuery ,
272277 cursor: PushNotificationCursor ? ,
273- existingCount: Int
278+ existingCount: Int ,
279+ showsIndicator: Bool = true
274280 ) -> Effect < Action > {
275281 let limit = max ( query. pageSize, existingCount)
276- let fetchEffect = fetchNotificationsPageEffect ( query: query, cursor: cursor)
282+ let fetchEffect = fetchNotificationsPageEffect ( query: query, cursor: cursor, showsIndicator : showsIndicator )
277283 let observeEffect = observeNotificationsEffect (
278284 query: query,
279285 limit: max ( limit, existingCount + query. pageSize)
You can’t perform that action at this time.
0 commit comments