-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concat data on refetch (e.g: For infinite scroll) #280
Comments
I asked pradel to open this issue so that we can discuss a minimal viable design for infinite scroll pagination, let's see if we can come up with something simple! |
@pradel @stubailo I like the simplicity of |
I am not sure that this belongs on refetch, personally - I'd be in favor of similar but alternative approaches, for example:
I don't think refetch should be overloaded to do more than simply rerun a single query maybe with different variables. |
Ok, I have the same needs and I would be interested to take on that issue and implement a |
Hi,
I am trying to make an infinite scroll, the problem is actually when you refetch a query old data are erased. Maybe It can be good to pass some options on refetch ?
Something like that ?
data.refetch({ newArgs }, { concat: true });
The text was updated successfully, but these errors were encountered: