Replies: 1 comment 1 reply
-
https://github.com/capawesome-team/capacitor-firebase/blob/main/packages/firestore/src/web.ts#L252 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is this code in docs:
After some research online (because I could not find what is the event in the documentation), I found that the callback has on it a field named
snapshots
and the other namedaddDocumentSnapshotListener
has snapshot.This is a bit unexpected since the event is one snapshot regardless of being called on one document or on a collection.
On official web implementation it is onSnapshot regardless of being used on a collection or document so I wonder whys would it be snapsots here? One snapshot has doc changes.
Beta Was this translation helpful? Give feedback.
All reactions