Merge pull request #166 from TouchInstinct/hotfix/paginator

paginator fix in NewPageProgress case State.FullData
This commit is contained in:
RationalEgoism 2020-09-11 12:30:51 +03:00 committed by GitHub
commit e5d6a02617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Paginator<Item>(
}
is State.NewPageProgress<*> -> {
if (items.size < pageSize) {
State.FullData(currentState.pageCount, currentState.data)
State.FullData(currentState.pageCount, currentState.data + items)
} else {
State.Data(currentState.pageCount + 1, currentState.data + items)
}