collection.valueChanges sometimes returns just the last document updated, instead of the entire collection
Version info
Angular: v6.0.7 Firebase: v5.2.0 AngularFire: v5.0.0-rc.11
Repro notes
I think this is going to take quite a while to develop a repro and figure out precisely under what circumstances it is occurring, so I wanted to log an issue and get some kind of response encouraging further investigation before doing that work. One thing I've found is that I can make the issue go away if I remove the first() or take(...) call from valueChanges() in the service method related to where the bug is showing up, so maybe the issue has to do with unsubscribing and resubscribing to valueChanges() in a short amount of time?
Debug output
No console errors observed.
Expected behavior
I have a collection and a query whose valueChanges() consistently has 100s of documents in it. After modifying one of the documents in the collection, the next value emitted by valueChanges() should still consist of the list of the 100s documents in the collection matching the query.
Actual behavior
After updating a document in the collection, the next value emitted by valueChanges() is a list containing only a single document - the document that was just modified.
I've observed this in a couple places of my app and it seems to be in places where I'm using first() on the observable returned by valueChanges().
I was able to work around this by caching the .valueChanges() results in a ReplaySubject in my service and just subscribing/unsubscribing from that in my various service methods. I'll go ahead and close this since I'm not planning to create a repro of the initial issue anymore.