angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

DocumentChangeAction types are all added when a new document is added

Open civicBoy13 opened this issue 5 years ago • 0 comments

When i add a new document to firestore and listen for the snapshot changed, every documentchangeaction that is returned has "added" as type, as opposed to the just the newly added document.

Version info

Angular: ~11.2.0

Firebase: ^7.0 || ^8.0

AngularFire: ^6.1.5

Other (e.g. Ionic/Cordova, Node, browser, operating system): ionic: 6.13.1

How to reproduce these conditions

Failing test unit, Stackblitz demonstrating the problem

Steps to set up and reproduce

Sample data and security rules

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

Actual behavior

civicBoy13 avatar Jun 13 '21 20:06 civicBoy13