FirestoreLiteProviderclass
new FirestoreLiteProvider<I, T>(firestore: Firestore)
| Param | Type | |
|---|---|---|
firestore | Firestore | The Firestore instance to read and write through. required |
| Return | |
|---|---|
FirestoreLiteProvider<I, T> | Cloud Firestore database provider backed by the Firebase Lite SDK, implementing the DBProvider abstraction. |
Cloud Firestore database provider backed by the Firebase Lite SDK, implementing the DBProvider abstraction.
- Works with the Firebase JS SDK via
firebase/firestore/lite, which keeps bundle size small. - Does not support offline mode.
- Does not support realtime subscriptions:
getItemSequence()andgetQuerySequence()throwUnimplementedError.
Examples
import { getFirestore } from "firebase/firestore/lite";
const provider = new FirestoreLiteProvider(getFirestore());