Apollo client active query definition

As going through Apollo docs, specifically caching , resetting, I have seen this term a few times “Active Query”.
What does it mean exactly. Is it a query that is being executed, and is between request-sent, and response-received? or just as long as it is within a component that is rendered on screen, even if it is not asking server for any data.

Hello, good question, and one that I’ll make a note to clarify in the docs!

When you see “active query”, it’s referring to your second option: any query that’s part of a rendered component, regardless of whether the query is currently executing.

1 Like