File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
firestore/src/platform/browser Expand file tree Collapse file tree 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 {
2222 WebChannel ,
2323 WebChannelError ,
2424 WebChannelOptions ,
25- FetchXmlHttpFactory ,
2625 XhrIo ,
2726 getStatEventTarget ,
2827 EventTarget ,
@@ -209,7 +208,7 @@ export class WebChannelConnection extends RestConnection {
209208 }
210209
211210 if ( this . useFetchStreams ) {
212- request . xmlHttpFactory = new FetchXmlHttpFactory ( { } ) ;
211+ request . useFetchStreams = true ;
213212 }
214213
215214 this . modifyHeadersForRequest (
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export interface WebChannelOptions {
108108 internalChannelParams ?: {
109109 forwardChannelRequestTimeoutMs ?: number ;
110110 } ;
111+ useFetchStreams ?: boolean ;
111112 xmlHttpFactory ?: unknown ;
112113 requestRefreshThresholds ?: { [ key : string ] : number } ;
113114}
You can’t perform that action at this time.
0 commit comments