From 654281b34a36b91d154373e1350dc4e908beef40 Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 21 Dec 2020 22:34:14 +0100 Subject: [PATCH] FIX GQL CURSOR ! --- lib/home.dart | 2 ++ lib/query.dart | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/home.dart b/lib/home.dart index 791c975..f219923 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -180,6 +180,8 @@ class _HistoryListScreenState extends State { if (_scrollController.position.pixels == _scrollController.position.maxScrollExtent) { if (!result.loading) { + print('B'); + print(opts); fetchMore(opts); } } diff --git a/lib/query.dart b/lib/query.dart index 7778686..e815d66 100644 --- a/lib/query.dart +++ b/lib/query.dart @@ -1,8 +1,8 @@ const String getMyRepositories = r''' - query ($pubkey: String!, $number: Int!) { + query ($pubkey: String!, $number: Int!, $cursor: String) { txsHistoryBc( pubkeyOrScript: $pubkey - pagination: { pageSize: $number, ord: DESC } + pagination: { pageSize: $number, ord: DESC, cursor: $cursor } ) { both { pageInfo {