Replies: 1 comment 2 replies
-
Interesting, I think I see what you mean - it appears you can do a snapshot listener, but it only has the includeMetadataChanges property for listener options, it doesn't have the ability to specify cache-only https://rnfirebase.io/reference/firestore/snapshotlistenoptions vs https://firebase.google.com/docs/reference/js/firestore_.snapshotlistenoptions Tell me this isn't. confusing though - they document that property but check out their actual interface definition - https://github.com/firebase/firebase-js-sdk/blob/e3e20784503347ba5cab1ead3a7b73df87125cb4/packages/firestore-types/index.d.ts#L231-L233 Looks the same as ours! We do allow you to specify the desired source in GetOptions for a one-time query just not the listener apparently. Looks like it's pretty new and that's why we don't have it (yet): |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if there are any plans to allow a user to specify where to get the listener data from. At the moment as far as I understand when setting up a listener data data will be pulled from both the cache and server as changes occur. However, from what I can tell, (correct me if I am wrong) doing it this way creates a number of issues;
I noticed in the other SDK's there is an option to specify where the data is coming from, is this feature going to become available in the react-native sdk soon too?
In the meantime is there some other way I can achieve the same thing i.e. get realtime updates for changes in my local cache?
Beta Was this translation helpful? Give feedback.
All reactions