Skip to content

Commit

Permalink
Merge branch 'main' into docs-update
Browse files Browse the repository at this point in the history
  • Loading branch information
thetnaingtn authored Oct 3, 2023
2 parents dab7c00 + bc055e0 commit fdf7fd5
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 26 deletions.
2 changes: 0 additions & 2 deletions .api-reports/api-report-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1666,8 +1666,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<ObservableSubscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react_components.md
Original file line number Diff line number Diff line change
Expand Up @@ -1289,8 +1289,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription_2>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react_hoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1267,8 +1267,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1413,8 +1413,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-react_ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-testing_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1218,8 +1218,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<Subscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report-utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -1929,8 +1929,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<ObservableSubscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
2 changes: 0 additions & 2 deletions .api-reports/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2039,8 +2039,6 @@ class QueryInfo {
// (undocumented)
stopped: boolean;
// (undocumented)
subscriptions: Set<ObservableSubscription>;
// (undocumented)
variables?: Record<string, any>;
}

Expand Down
5 changes: 5 additions & 0 deletions .changeset/short-owls-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Remove some dead code.
4 changes: 0 additions & 4 deletions src/core/QueryInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type { ObservableQuery } from "./ObservableQuery.js";
import { reobserveCacheFirst } from "./ObservableQuery.js";
import type { QueryListener, MethodKeys } from "./types.js";
import type { FetchResult } from "../link/core/index.js";
import type { ObservableSubscription } from "../utilities/index.js";
import {
isNonEmptyArray,
graphQLResultHasError,
Expand Down Expand Up @@ -78,7 +77,6 @@ export class QueryInfo {
listeners = new Set<QueryListener>();
document: DocumentNode | null = null;
lastRequestId = 1;
subscriptions = new Set<ObservableSubscription>();
variables?: Record<string, any>;
networkStatus?: NetworkStatus;
networkError?: Error | null;
Expand Down Expand Up @@ -293,8 +291,6 @@ export class QueryInfo {
// QueryInfo.prototype.
this.cancel = QueryInfo.prototype.cancel;

this.subscriptions.forEach((sub) => sub.unsubscribe());

const oq = this.observableQuery;
if (oq) oq.stopPolling();
}
Expand Down

0 comments on commit fdf7fd5

Please sign in to comment.