Skip to content

Commit f27baf4

Browse files
Rolling back the use of useFetchStreams, which has lead to hanging queries. (#7729)
* Rolling back the use of useFetchStreams, which has lead to hanging queries.
1 parent 6e4e475 commit f27baf4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/real-ants-notice.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
Rolling back the use of useFetchStreams, which has lead to hanging and incomplete queries.

packages/firestore/src/platform/browser/webchannel_connection.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import {
2727
EventTarget,
2828
StatEvent,
2929
Event,
30-
Stat
30+
Stat,
31+
FetchXmlHttpFactory
3132
} from '@firebase/webchannel-wrapper';
3233

3334
import { Token } from '../../api/credentials';
@@ -208,7 +209,8 @@ export class WebChannelConnection extends RestConnection {
208209
}
209210

210211
if (this.useFetchStreams) {
211-
request.useFetchStreams = true;
212+
// TODO(b/307942499): switch to `useFetchStreams` once WebChannel is fixed.
213+
request.xmlHttpFactory = new FetchXmlHttpFactory({});
212214
}
213215

214216
this.modifyHeadersForRequest(

0 commit comments

Comments
 (0)