docData observable stream emits identical object values multiple times in a row
- Ngôn ngữ chính
- TypeScript
- Star
- 7.8k
- Fork
- 2.2k
- Merge trung bình
- 22 giờ 28 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### 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):
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với project tái hiện firebase-observable-double-emission được liên kết và các package scripts của nó; chạy project và nhấn nút cập nhật để quan sát stream docData. So sánh các emission giống hệt nhau bị lặp lại với emission đơn lẻ ожида đợi, sử dụng cuộc thảo luận Stack Overflow được cung cấp và ghi chú về logging làm ngữ cảnh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, firebase, typescript
- Lĩnh vực
- database, frontend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100