firebase / firebase/firebase-js-sdk
Disabling of experimentalAutoDetectLongPolling due to unnecessary fallback
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
### Operating System
Windows 10/11 latest (and probably all others)
### Browser Version
Chrome/Edge latest (and probably all others)
### Firebase SDK Version
10.4.0 (probably all down to 9.22)
### Firebase SDK Product:
Firestore
### Describe your project's tooling
Angular via nx and esbuild
### Describe the problem
You declare that users disabling experimentalAutoDetectLongPolling should report it as a bug and describe why in the docs, and I currently do that.... I have no issues with it, except that in my scenario it seems to often fallback to longPolling unnecessary. This is probably due to me disabling/enabling network on visibilitychange, to make all platforms (ios/windows/android) behave the same way, and limit network traffic... This works fine, except for the fallback to longPolling sometimes, so I guess me enabling/disabling network is interfering with the logic for detecting a buffering proxy...
### Steps and code to reproduce issue
disable/enable network often and observer traffic in devtools...
Contributor guide
Assessment
This issue has not been assessed yet.