FIX GQL CURSOR !

This commit is contained in:
poka 2020-12-21 22:34:14 +01:00
parent 24be168cd4
commit 654281b34a
2 changed files with 4 additions and 2 deletions

View File

@ -180,6 +180,8 @@ class _HistoryListScreenState extends State<HistoryListScreen> {
if (_scrollController.position.pixels == if (_scrollController.position.pixels ==
_scrollController.position.maxScrollExtent) { _scrollController.position.maxScrollExtent) {
if (!result.loading) { if (!result.loading) {
print('B');
print(opts);
fetchMore(opts); fetchMore(opts);
} }
} }

View File

@ -1,8 +1,8 @@
const String getMyRepositories = r''' const String getMyRepositories = r'''
query ($pubkey: String!, $number: Int!) { query ($pubkey: String!, $number: Int!, $cursor: String) {
txsHistoryBc( txsHistoryBc(
pubkeyOrScript: $pubkey pubkeyOrScript: $pubkey
pagination: { pageSize: $number, ord: DESC } pagination: { pageSize: $number, ord: DESC, cursor: $cursor }
) { ) {
both { both {
pageInfo { pageInfo {