Skip to content
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

What causes a query to be aborted? #94

Open
mluu510 opened this issue Mar 25, 2020 · 1 comment
Open

What causes a query to be aborted? #94

mluu510 opened this issue Mar 25, 2020 · 1 comment

Comments

@mluu510
Copy link

mluu510 commented Mar 25, 2020

We used the relay middleware to help us cache some queries. One of being a query called ViewerIdQuery, it just fetches the id on the viewer. For some reason our help abort this query keeps getting aborted. What would cause a query to be aborted? If we cache it, should it still be reported that it's aborted?

 LOG  [RELAY-NETWORK] Aborted
 LOG  [RELAY-NETWORK] will retry in 1000 milliseconds
 LOG  [RELAY-NETWORK] Cancelled ViewerIdQuery
 LOG  [trace] Rollbar.error
 [AbortError: Aborted]
@joelvh
Copy link
Contributor

joelvh commented Mar 25, 2020

Queries may get canceled when a component re-renders or some other UI change is triggered that cancels an incomplete query. If you're experiencing this without doing anything, maybe something in your app is causing a re-render via a timeout or some other side effect?

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

No branches or pull requests

2 participants