API Documentation / vuefire / FirestorePluginOptions
Interface: FirestorePluginOptions
vuefire.FirestorePluginOptions
Options for the Firebase Database Plugin that enables the Options API such as $firestoreBind
and $firestoreUnbind
.
Hierarchy
FirestoreRefOptions
↳
FirestorePluginOptions
Properties
bindName
• Optional
bindName: string
@deprecated: was largely unused and not very useful. Please open an issue with use cases if you need this.
converter
• Optional
converter: FirestoreDataConverter
<unknown
, DocumentData
>
Default Firestore converter to use with snapshots.
Inherited from
FirestoreRefOptions.converter
maxRefDepth
• Optional
maxRefDepth: number
The maximum depth to bind nested refs. A nested ref that isn't bound will stay as the ref path while a bound ref will contain the same data as if the ref was bound directly.
Inherited from
FirestoreRefOptions.maxRefDepth
once
• Optional
once: boolean
Should the data be fetched once rather than subscribing to changes.
Inherited from
FirestoreRefOptions.once
reset
• Optional
reset: ResetOption
If true, the data will be reset when the data source is unbound. Pass a function to specify a custom reset value.
Inherited from
FirestoreRefOptions.reset
snapshotListenOptions
• Optional
snapshotListenOptions: SnapshotListenOptions
Inherit Doc
Inherited from
FirestoreRefOptions.snapshotListenOptions
snapshotOptions
• Optional
snapshotOptions: SnapshotOptions
Inherit Doc
Inherited from
FirestoreRefOptions.snapshotOptions
ssrKey
• Optional
ssrKey: string
Optional key to handle SSR hydration. Necessary for Queries or when the same source is used in multiple places with different converters.
Inherited from
FirestoreRefOptions.ssrKey
target
• Optional
target: Ref
<unknown
, unknown
>
Use the target
ref instead of creating one.
Inherited from
FirestoreRefOptions.target
unbindName
• Optional
unbindName: string
@deprecated: was largely unused and not very useful. Please open an issue with use cases if you need this.
wait
• Optional
wait: boolean
If true, wait until the data is loaded before setting the data for the first time. For Firestore, this includes nested refs. This is only useful for lists and collections. Objects and documents do not need this.
Inherited from
FirestoreRefOptions.wait