File tree 3 files changed +8
-2
lines changed
firestore/src/platform/browser
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ " @firebase/webchannel-wrapper " : patch
4
+ ---
5
+
6
+ Fix how we enable fetch streams.
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
WebChannel ,
23
23
WebChannelError ,
24
24
WebChannelOptions ,
25
- FetchXmlHttpFactory ,
26
25
XhrIo ,
27
26
getStatEventTarget ,
28
27
EventTarget ,
@@ -209,7 +208,7 @@ export class WebChannelConnection extends RestConnection {
209
208
}
210
209
211
210
if ( this . useFetchStreams ) {
212
- request . xmlHttpFactory = new FetchXmlHttpFactory ( { } ) ;
211
+ request . useFetchStreams = true ;
213
212
}
214
213
215
214
this . modifyHeadersForRequest (
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export interface WebChannelOptions {
108
108
internalChannelParams ?: {
109
109
forwardChannelRequestTimeoutMs ?: number ;
110
110
} ;
111
+ useFetchStreams ?: boolean ;
111
112
xmlHttpFactory ?: unknown ;
112
113
requestRefreshThresholds ?: { [ key : string ] : number } ;
113
114
}
You can’t perform that action at this time.
0 commit comments