-
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
Regression in BatchHttpLink with v3.7.0: queries hang and are not issued on network requests #10205
Comments
Seeing the same thing as vieira: using the BatchHTTPLink in 3.7.0 or 3.7.1 makes some of the queries never execute and they are left in a loading state. When reverting to 3.6.9 (previously used version), or removing the usage of the BatchHTTPLink, it works again. |
We just ran into the same issue ourselves. A few observations:
|
We also faced the issue. After some investigation we found out that this happens when we don't send the same We see that one query is sent via the network, but not the other. Moreover, the one that is sent is always the LAST one in the We are not using Very easy to reproduce, I think this minimal repro would be enough if only the If somebody knows how to modify that code to use It's still present in 3.7.3 and 3.8.0-alpha.3 |
@bignimbus will my extra info above speed up resolving this? |
Hi @vpotapchuk 👋🏻 the linked PR #10408 is almost ready to ship. I appreciate the link but since it doesn't demonstrate the problem as-is we'll need to modify it in order to do a manual test of the PR, which is fine. Are you able to pull the branch in the PR and test in your app locally? |
Hi all, the fix should go out in the next patch ( |
Hey, I just confirmed on your latest changes, this solved the issue, thanks |
Hey, I also just tested the 3.7.7, everything works correctly for us now! Great job! @bignimbus Sorry for not answering earlier, I realized I have some problems with github notifications... |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Intended outcome:
All pending queries should be dispatched to the network.
Actual outcome:
Queries are not dispatched to the network, they just hang,
loading
returned fromuseQuery
returns true indefinitely. This issue first appeared in v3.6.x (#9690) and was fixed in v3.6.7. The issue does NOT occur in v3.6.9 and v3.6.10 but occurs in v3.7.0.Not sure if the regression was introduced when backporting (#9807) or by some other change.
How to reproduce the issue:
Using BatchHttpLink as a terminating link and having a page with a buch of queries should exhibit the issue.
Versions
v3.7.0
(Note: this has previously affected v3.6.x prior to v3.6.7. Can confirm it does not occur with v3.6.9 and v3.6.10)
The text was updated successfully, but these errors were encountered: