docData observable stream emits identical object values multiple times in a row
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 22 Std. 28 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### Version info
**Angular:** ^18.0.0
**Firebase:** ^10.13.0
**AngularFire:** ^18.0.1
**Other (e.g. Ionic/Cordova, Node, browser, operating system):**
"@ionic/angular": "^8.0.0",
Tested on MacOS Chrome, but reproducible elsewhere. Else let me know.
### How to reproduce these conditions
Simply press the update button after strating this project, it will update the game entity and make it emit twice:
https://github.com/folsze/firebase-observable-double-emission
here is a related stackoverflow post that I created:
https://stackoverflow.com/questions/78891192/firebase-docdata-stream-emits-identical-object-values-multiple-times-in-a-row
**Steps to set up and reproduce**
run with package json npm run
then simply press the update button, it will update the game entity and make it emit twice:
### Debug output
** Output from `firebase.database().enableLogging(true);` **
<- I have no idea what this is suppoed to do for me. I added this but receive no logs:
import { enableLogging } from '@angular/fire/database';
enableLogging(true);
### Expected behavior
It only emits once
### Actual behavior
it emits multiple times (twice currently for this simple scenario):
Beitragsleitfaden
Rechercherichtung
Beginne mit dem verknüpften Reproduktionsprojekt firebase-observable-double-emission und seinen package scripts; führe es aus und drücke die Update-Schaltfläche, um den docData-Stream zu beobachten. Vergleiche die wiederholten identischen Emissionen mit der erwarteten einzelnen Emission und nutze dabei die bereitgestellte Stack Overflow-Diskussion und den Hinweis zur Protokollierung als Kontext.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, firebase, typescript
- Bereich
- database, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100