File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
packages/firestore/src/lite-api Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -123,17 +123,23 @@ export class FirestoreSettingsImpl {
123
123
}
124
124
}
125
125
126
- this . experimentalForceLongPolling = ! ! settings . experimentalForceLongPolling ;
127
- this . experimentalAutoDetectLongPolling =
128
- ! ! settings . experimentalAutoDetectLongPolling ;
129
- this . useFetchStreams = ! ! settings . useFetchStreams ;
130
-
131
126
validateIsNotUsedTogether (
132
127
'experimentalForceLongPolling' ,
133
128
settings . experimentalForceLongPolling ,
134
129
'experimentalAutoDetectLongPolling' ,
135
130
settings . experimentalAutoDetectLongPolling
136
131
) ;
132
+
133
+ if ( ! settings . experimentalForceLongPolling ) {
134
+ this . experimentalForceLongPolling = false ;
135
+ this . experimentalAutoDetectLongPolling =
136
+ settings . experimentalAutoDetectLongPolling ?? false ;
137
+ } else {
138
+ this . experimentalForceLongPolling = true ;
139
+ this . experimentalAutoDetectLongPolling = false ;
140
+ }
141
+
142
+ this . useFetchStreams = ! ! settings . useFetchStreams ;
137
143
}
138
144
139
145
isEqual ( other : FirestoreSettingsImpl ) : boolean {
You can’t perform that action at this time.
0 commit comments