You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intended outcome:
Failed queries should error once and not retry unless otherwise configured with RetryLink.
Actual outcome:
Failed queries continuously retry.
How to reproduce the issue:
Call a query with useQuery and add an invalid field. The network inspector shows many failed requests with the 400 status code.
Versions
@apollo/[email protected]
(and as far back into v3 beta as I can remember)
The text was updated successfully, but these errors were encountered:
Ever since the big refactoring in #6221 made the client more aggressive
about triggering network requests in response to incomplete cache data
(when using a cache-first FetchPolicy), folks testing the betas/RCs have
reported that feuding queries can end up triggering an endless loop of
unhelpful network requests.
This change does not solve the more general problem of queries competing
with each other to update the same data in incompatible ways (see #6372
for mitigation strategies), but I believe this commit will effectively put
a stop to most cases of endless network requests.
See my lengthy implementation comment for more details, since this is a
non-obvious solution to a very tricky problem.
Fixes#6307.
Fixes#6370.
Fixes#6434.
Fixes#6444.
@benjamn I'm seeing this behaviour in @apollo/[email protected]. When a GraphQL request returns a 503, we get an infinity loop of retries. Seems to be happening only with queries with polling.
Intended outcome:
Failed queries should error once and not retry unless otherwise configured with
RetryLink
.Actual outcome:
Failed queries continuously retry.
How to reproduce the issue:
Call a query with
useQuery
and add an invalid field. The network inspector shows many failed requests with the 400 status code.Versions
@apollo/[email protected]
(and as far back into v3 beta as I can remember)
The text was updated successfully, but these errors were encountered: