We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ecbae0 commit ae85a41Copy full SHA for ae85a41
src/firestore/bind.ts
@@ -75,6 +75,11 @@ interface _FirestoreRefOptionsWithDefaults extends FirestoreRefOptions {
75
* See https://vuefire.vuejs.org/guide/global-options.html
76
*/
77
converter: FirestoreDataConverter<unknown>
78
+
79
+ /**
80
+ * @defaultValue `{ serverTimestamps: 'estimate' }` to avoid `null` values
81
+ */
82
+ snapshotOptions: SnapshotOptions
83
}
84
85
/**
@@ -85,6 +90,7 @@ const DEFAULT_OPTIONS: _FirestoreRefOptionsWithDefaults = {
90
wait: true,
86
91
maxRefDepth: 2,
87
92
converter: firestoreDefaultConverter,
93
+ snapshotOptions: { serverTimestamps: 'estimate' },
88
94
89
95
export { DEFAULT_OPTIONS as firestoreOptionsDefaults }
96
0 commit comments