docData observable stream emits identical object values multiple times in a row
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 2.2k
- Merge medio
- 22 h 28 min
- PR fusionados (30 d)
- 6
Descripción
### 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):
Guía de contribución
Línea de trabajo
Comienza con el proyecto de reproducción vinculado firebase-observable-double-emission y sus package scripts; ejecútalo y pulsa el botón de actualización para observar el flujo docData. Compara las emisiones idénticas repetidas con la emisión única esperada, usando como contexto la discusión de Stack Overflow proporcionada y la nota sobre logging.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, firebase, typescript
- Área
- database, frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100