quodolores
Version:
Monorepo for the Firebase JavaScript SDK
14 lines (8 loc) • 798 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [SnapshotMetadata](./firestore_.snapshotmetadata.md) > [hasPendingWrites](./firestore_.snapshotmetadata.haspendingwrites.md)
## SnapshotMetadata.hasPendingWrites property
True if the snapshot contains the result of local writes (for example `set()` or `update()` calls) that have not yet been committed to the backend. If your listener has opted into metadata updates (via `SnapshotListenOptions`<!-- -->) you will receive another snapshot with `hasPendingWrites` equal to false once the writes have been committed to the backend.
<b>Signature:</b>
```typescript
readonly hasPendingWrites: boolean;
```