Skip to content

Commit e7054df

Browse files
committed
fix(afs): Remove DocumentListenOptions
1 parent 630b55d commit e7054df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/firestore/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface Action<T> {
1212
};
1313

1414
export interface Reference<T> {
15-
onSnapshot: (options: firebase.firestore.DocumentListenOptions, sub: Subscriber<any>) => any;
15+
onSnapshot: (sub: Subscriber<any>) => any;
1616
}
1717

1818
// A convience type for making a query.

src/firestore/observable/fromRef.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'rxjs/add/operator/map';
99

1010
function _fromRef<T, R>(ref: Reference<T>): Observable<R> {
1111
const ref$ = new Observable(subscriber => {
12-
const unsubscribe = ref.onSnapshot({ includeQueryMetadataChanges: true }, subscriber);
12+
const unsubscribe = ref.onSnapshot(subscriber);
1313
return { unsubscribe };
1414
});
1515
return observeOn.call(ref$, new ZoneScheduler(Zone.current));

0 commit comments

Comments
 (0)