Method

isEqual

isEqual(other) returns boolean

Returns 'true' if this SnapshotMetadata is equal to the provided one.

Parameter

other

firebase.firestore.SnapshotMetadata

The SnapshotMetadata to compare against.

Value must not be null.

Returns

boolean 'true' if this SnapshotMetadata is equal to the provided one.

Abstract types

fromCache

inner

boolean

True if the snapshot was created from cached data rather than guaranteed up-to-date server data. If your listener has opted into metadata updates (via SnapshotListenOptions) you will receive another snapshot with fromCache set to false once the client has received up-to-date data from the backend.

hasPendingWrites

inner

boolean

True if the snapshot includes local writes (set() or update() calls) that haven't been committed to the backend yet.

If your listener has opted into metadata updates via SnapshotListenOptions, you receive another snapshot with hasPendingWrites set to false once the writes have been committed to the backend.