-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Race condition in valueChanges() #2728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Confirming, have the same behaviour after latest updates but not only with valueChanges(). All subscription methods fires randomly in time (it's clearly visible because we have a user notification which appears on changes, but it appears when no changes happend) |
Tested with angular 11 as well the issue exists. Version info **Firebase:8.2.1 **AngularFire:6.1.4 |
I bet this has to do with metadata changes, I fixed a bug which meant they weren't getting emitted on FWIW that might be a work around for now. |
Getting the same issue... is this being fixed? |
Not completely sure if it is related, but I have the same issue. Running For example, when I log out using |
Closing as some of this should be addressed in v7, others are just how the library works, developers should use |
Race condition happening in valueChanges() of doc [subscribe keeps firing with no data change in document].
The issue is happening in angular prod build, Dev build works fine.
Tested downgrading the package to AngularFire v6.0.5, the issue is not replicable.
Version info
**Angular: 10.2.3
**Firebase:8.2.1
**AngularFire:6.1.4
How to reproduce these conditions
sample code
Debug output
NA
Expected behavior
Subscribe method should execute on start and on doc change
Actual behavior
Subscribe method executed like while loop without any end
Details I'm not sure is relevant:
Tsconfig:
"module": "es2020",
"target": "ES2015",
Angular dev and Prod build diff.
optimization & buildOptimizer are true in prod rest are same
The text was updated successfully, but these errors were encountered: