-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
why fetchMore sen two requests to my GraphQL server #9363
Comments
I store these cursors with useState hook, then I got one request.
the first one is an options request , so not related to this issue, however the `args of my read policy, called two times, one with the after cursor, one with no cursor. why the read function got called with no cursor? since the after cursor is passed to fetchMore function, I swear the after cursor is not empty.
|
closed, as it is similar with issue fetchMore and fetchPolicy: cache-and-network does not work together |
there is a button named "next" , when user clicks this button ,it is supposed to be one, but two requests sent to server.
the first time.
the second time:
you see , the second request without after cursor.
I don't know why.
there is a similar issue here, but add
not working at all.
The text was updated successfully, but these errors were encountered: