You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When subscribing to Firestore data without using rxfire, the Firestore SDK (at least v9) supports optional SnapshotOptions when getting data from a snapshot. E.g.
// Currently, the only SnapshotOption is `serverTimestamps`.snap.data({serverTimestamps: "estimate"});
When using docData() or collectionData(), in addition to allowing the user to provide an optional idField, I'd like to be able to provide SnapshotOptions and, specifically, the serverTimestamps option so that returned documents have an "estimate" timestamp value rather than null.
If it were possible, I might recommend upstreaming the idField option to the main Firebase SDK repo so that "idField" is added to SnapshotOptions and becomes officially supported. At that point, rxfire could simply pass all the SnapshotOptions provided to docData or collectionData internally to snap.data(options).
The text was updated successfully, but these errors were encountered:
When subscribing to Firestore data without using rxfire, the Firestore SDK (at least v9) supports optional
SnapshotOptions
when getting data from a snapshot. E.g.When using
docData()
orcollectionData()
, in addition to allowing the user to provide an optionalidField
, I'd like to be able to provideSnapshotOptions
and, specifically, theserverTimestamps
option so that returned documents have an "estimate" timestamp value rather thannull
.If it were possible, I might recommend upstreaming the
idField
option to the main Firebase SDK repo so that "idField" is added toSnapshotOptions
and becomes officially supported. At that point, rxfire could simply pass all theSnapshotOptions
provided todocData
orcollectionData
internally tosnap.data(options)
.The text was updated successfully, but these errors were encountered: