SnapshotListenOptions
interface
An options object that can be passed to DocumentReference.onSnapshot()
, Query.onSnapshot()
and QuerySnapshot.docChanges()
to control which types of changes to include in the result set.
Properties
includeMetadataChanges
</>Include a change even if only the metadata of the query or of a document changed. Default is false.
includeMetadataChanges: undefined | false | true;
serverTimestampBehavior
</>If set, controls the return value for server timestamps that have not yet been set to their final value.
serverTimestampBehavior: "estimate" | "previous" | "none";