Skip to content

Commit

Permalink
fix(rn): refetch when page not fulfilled
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Jun 12, 2019
1 parent 2fa7200 commit 31d2f91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/react-native/app/container/stream.js
Expand Up @@ -130,6 +130,11 @@ export class StreamPagination extends Stream {
// if forced to add, push it
if (change.force) {
this.queue.push(newValue)
return
}

if (this.queue.length < this.paginate.first) {
this.invoke()
}
}

Expand Down

0 comments on commit 31d2f91

Please sign in to comment.