File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/firestore/src/lite-api Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,17 @@ export class FirestoreSettingsImpl {
130
130
settings . experimentalAutoDetectLongPolling
131
131
) ;
132
132
133
- if ( ! settings . experimentalForceLongPolling ) {
134
- this . experimentalForceLongPolling = false ;
135
- this . experimentalAutoDetectLongPolling =
136
- settings . experimentalAutoDetectLongPolling ?? true ;
137
- } else {
133
+ if ( settings . experimentalForceLongPolling ) {
138
134
this . experimentalForceLongPolling = true ;
139
135
this . experimentalAutoDetectLongPolling = false ;
136
+ } else {
137
+ this . experimentalForceLongPolling = false ;
138
+ if ( settings . experimentalAutoDetectLongPolling === undefined ) {
139
+ this . experimentalAutoDetectLongPolling = true ;
140
+ } else {
141
+ this . experimentalAutoDetectLongPolling =
142
+ settings . experimentalAutoDetectLongPolling ;
143
+ }
140
144
}
141
145
142
146
this . useFetchStreams = ! ! settings . useFetchStreams ;
You can’t perform that action at this time.
0 commit comments