diff --git a/src/GraphListener.ts b/src/GraphListener.ts index 36ab1e1..78b6306 100644 --- a/src/GraphListener.ts +++ b/src/GraphListener.ts @@ -128,6 +128,7 @@ export class GraphDocumentListener< if (this.queryListener) { if (snapshot.exist) { this.queryListener.updateSnapshot(snapshot, false); + onUpdate(this.queryListener.result as any); } else { onUpdate(snapshot); } @@ -279,6 +280,10 @@ export class GraphCollectionListener< snapshot, false ); + onUpdateWithResult( + docChange.doc.ref.path, + this.queryListeners[docChange.doc.ref.path].result as any + ); break; } }