fix .retry

This commit is contained in:
Ivan Smolin 2018-03-21 18:28:21 +03:00
parent 435fbace1d
commit 323300be63
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ public final class PaginationDataLoadingModel<Cursor: ResettableRxDataSourceCurs
case .reload, .retry:
dataSource = dataSource.reset()
if loadType == .retry {
state = .initial
}
state = .loading(after: state)
case .next:
if case .exhausted = state {