You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AngularFireDatabase doesn't execute functions when an empty list should be returned #1220
When i call the method with an email that exists in my realtime database, everything is fine, but if the observable should return an empty list, it is not triggered.
This issue still exists. When where queries are added in collection via reference & if the collection is empty, the subscription is not fired, on .valueChanges()
Activity
guillefd commentedon Oct 6, 2017
Same here, also
snapshotChanges()doesn´t trigger when list is emptyjamesdaniels commentedon Oct 6, 2017
K, I fixed in AFS I'll grab AFDB tonight + cut a new RC.
jamesdaniels commentedon Oct 10, 2017
FYI this is a little trickier with RTDB + the new arch. Still in progress.
yaozuwang commentedon Oct 10, 2017
Thanks James
DennisSmolek commentedon Oct 11, 2017
Heads up, getting this as well...
core firebase.js says a snapshot should return null if empty but with the latest angularFire I dont get anything until a value exists.
return this.af.list('/revisions/' + contentId + '/' + draftId).valueChanges();andsnapshotChanges()are both never firing their subscriptions..but:
fires with
Firebase once returning:nullI had the listener setup with later functions
init()binding inside the callback and my app just paused waiting for the callback....hvsharma63 commentedon Sep 30, 2022
This issue still exists. When where queries are added in collection via reference & if the collection is empty, the subscription is not fired, on .valueChanges()

Fixing null set with RTDB, better typings, and more (angular#1264)