Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Adding the fetchMore function #4

Open
Rasmunis opened this issue Feb 15, 2021 · 2 comments
Open

Adding the fetchMore function #4

Rasmunis opened this issue Feb 15, 2021 · 2 comments

Comments

@Rasmunis
Copy link

Hello again

I see that useQuery returns a refetch-function, here called fetch, but I can't find any support for the fetchMore-function used for pagination.

Is it possible to add this?

@kevinrodriguez-io
Copy link
Owner

Hi @Rasmunis ! That's an intresting one because It basically has to append to the items that are already on the array. Definetly can be done, I just need some time to peek on how is it supposed to work.

@kevinrodriguez-io
Copy link
Owner

@Rasmunis Some heads up on this

https://github.com/mainawycliffe/graphql-flutter/blob/fetchmore/packages/graphql_flutter/example/lib/fetchmore/main.dart

I can add fetchMore as another parameter for query and lazyQuery hooks. But at this point I'm still working on this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants