Skip to content

Commit

Permalink
Rolling back the use of useFetchStreams, which has lead to hanging qu…
Browse files Browse the repository at this point in the history
…eries. (#7729)

* Rolling back the use of useFetchStreams, which has lead to hanging queries.
  • Loading branch information
MarkDuckworth authored Oct 27, 2023
1 parent 6e4e475 commit f27baf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-ants-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
---

Rolling back the use of useFetchStreams, which has lead to hanging and incomplete queries.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import {
EventTarget,
StatEvent,
Event,
Stat
Stat,
FetchXmlHttpFactory
} from '@firebase/webchannel-wrapper';

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

if (this.useFetchStreams) {
request.useFetchStreams = true;
// TODO(b/307942499): switch to `useFetchStreams` once WebChannel is fixed.
request.xmlHttpFactory = new FetchXmlHttpFactory({});
}

this.modifyHeadersForRequest(
Expand Down

0 comments on commit f27baf4

Please sign in to comment.