You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TableView scroll near bottom. Lost network or the next page request failure. Lead response failure.
Execute case .response(.failure(let error))
case .response(.failure(let error)):
var result = state
result.shouldLoadNextPage = false
result.lastError = error
return result
}
Then the state emit flatMapLatest execute. shouldLoadNextPage current is false. Because current TableView near the bottom. Event.scrollingNearBottom emit again.
So requst next page again. if request next page failure again. The Feedback Repeat execution. Can not stop.
let triggerLoadNextPage: (Driver<State>) -> Signal<Event> = { state in
return state.flatMapLatest { state -> Signal<Event> in
if state.shouldLoadNextPage {
return Signal.empty()
}
return searchResults.rx.nearBottom.map { _ in Event.scrollingNearBottom }
.debug()
}
}
The text was updated successfully, but these errors were encountered:
SylvanasX
added a commit
to SylvanasX/RxFeedback.swift
that referenced
this issue
Feb 9, 2019
Reproduce Step:
Step 1:
Input the search text swift(request success)
Step 2:
TableView scroll near bottom. Lost network or the next page request failure. Lead response failure.
Execute
case .response(.failure(let error))
Then the state emit flatMapLatest execute. shouldLoadNextPage current is false. Because current TableView near the bottom. Event.scrollingNearBottom emit again.
So requst next page again. if request next page failure again. The Feedback Repeat execution. Can not stop.
The text was updated successfully, but these errors were encountered: