@@ -118,7 +118,9 @@ export class QueryManager<TStore> {
118
118
119
119
// Maps from queryId strings to Promise rejection functions for
120
120
// currently active queries and fetches.
121
- private fetchCancelFns = new Map < string , ( error : any ) => any > ( ) ;
121
+ // Use protected instead of private field so
122
+ // @apollo /experimental-nextjs-app-support can access type info.
123
+ protected fetchCancelFns = new Map < string , ( error : any ) => any > ( ) ;
122
124
123
125
constructor ( {
124
126
cache,
@@ -144,7 +146,7 @@ export class QueryManager<TStore> {
144
146
assumeImmutableResults ?: boolean ;
145
147
} ) {
146
148
const defaultDocumentTransform = new DocumentTransform (
147
- ( document ) => this . cache . transformDocument ( document ) ,
149
+ ( document ) => this . cache . transformDocument ( document ) ,
148
150
// Allow the apollo cache to manage its own transform caches
149
151
{ cache : false }
150
152
) ;
@@ -161,8 +163,8 @@ export class QueryManager<TStore> {
161
163
? defaultDocumentTransform
162
164
. concat ( documentTransform )
163
165
// The custom document transform may add new fragment spreads or new
164
- // field selections, so we want to give the cache a chance to run
165
- // again. For example, the InMemoryCache adds __typename to field
166
+ // field selections, so we want to give the cache a chance to run
167
+ // again. For example, the InMemoryCache adds __typename to field
166
168
// selections and fragments from the fragment registry.
167
169
. concat ( defaultDocumentTransform )
168
170
: defaultDocumentTransform
@@ -695,7 +697,7 @@ export class QueryManager<TStore> {
695
697
const query = this . transform ( options . query ) ;
696
698
697
699
// assign variable default values if supplied
698
- // NOTE: We don't modify options.query here with the transformed query to
700
+ // NOTE: We don't modify options.query here with the transformed query to
699
701
// ensure observable.options.query is set to the raw untransformed query.
700
702
options = {
701
703
...options ,
@@ -719,7 +721,7 @@ export class QueryManager<TStore> {
719
721
720
722
this . queries . set ( observable . queryId , queryInfo ) ;
721
723
722
- // We give queryInfo the transformed query to ensure the first cache diff
724
+ // We give queryInfo the transformed query to ensure the first cache diff
723
725
// uses the transformed query instead of the raw query
724
726
queryInfo . init ( {
725
727
document : query ,
@@ -1027,7 +1029,9 @@ export class QueryManager<TStore> {
1027
1029
return this . localState ;
1028
1030
}
1029
1031
1030
- private inFlightLinkObservables = new Map <
1032
+ // Use protected instead of private field so
1033
+ // @apollo /experimental-nextjs-app-support can access type info.
1034
+ protected inFlightLinkObservables = new Map <
1031
1035
string ,
1032
1036
Map < string , Observable < FetchResult > >
1033
1037
> ( ) ;
0 commit comments