Skip to content

Commit

Permalink
docs: specify that select() cannot be used with listeners (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian authored May 27, 2020
1 parent 7acdd7e commit 4f4574a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/src/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,9 @@ export class Query<T = DocumentData> {
* You can specify a list of field paths to return, or use an empty list to
* only return the references of matching documents.
*
* Queries that contain field masks cannot be listened to via `onSnapshot()`
* listeners.
*
* This function returns a new (immutable) instance of the Query (rather than
* modify the existing instance) to impose the field mask.
*
Expand Down
3 changes: 3 additions & 0 deletions types/firestore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,9 @@ declare namespace FirebaseFirestore {
* specify a list of field paths to return, or use an empty list to only
* return the references of matching documents.
*
* Queries that contain field masks cannot be listened to via `onSnapshot()`
* listeners.
*
* This function returns a new (immutable) instance of the Query (rather
* than modify the existing instance) to impose the field mask.
*
Expand Down

0 comments on commit 4f4574a

Please sign in to comment.