Merge pull request #166 from TouchInstinct/hotfix/paginator
paginator fix in NewPageProgress case State.FullData
This commit is contained in:
commit
e5d6a02617
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue