voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
14 lines (8 loc) • 721 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) > [fromCache](./firestore_.snapshotmetadata.fromcache.md)
## SnapshotMetadata.fromCache property
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.
<b>Signature:</b>
```typescript
readonly fromCache: boolean;
```