Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVuexfire: Add includeMetadataChanges option to snapshot handling #883
Comments
Yeah, we should definitely allow a way of passing https://firebase.google.com/docs/reference/js/firebase.firestore.SnapshotListenOptions, probably as a whole option named |
What problem is this solving
Related to firebase/firebase-js-sdk#3661 this feature will enable listening to changes of the metadata to e.g. check for documents, which aren't synced with the server yet.
At this time it's required to reload the data manually as the Vuex store is not notified about the changes for the metadata of the given query.
Proposed solution
Extend
FirestoreOptions
with parameterIncludeMetadataChanges
and pass parameter to native Firebase handling.Example code
Describe alternatives you've considered
I've tried to find other native methods or workarounds but did not find a solution yet.