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
I noticed some differences / complications for the implementation of realtime updates between react-native-firebase and the official docs.
Example Code:
firebase.firestore().collection('rooms').where(`users.${userId}`,'==',true).onSnapshot((docs)=>{docs.docChanges.forEach((change)=>{// this is where it's different.. see below});});
I noticed the following differences when using docs.docChanges:
Official
react-native-firebase
change.doc.data()
change.doc.data
change.doc.id
change.doc.path.split('/')[1] 😅
Application Target Platform: only tested on android
Development Operating System: Windows 10
Build Tools: Android Studio
React Native version: 0.48.4
RNFirebase Version: 3.0.2
Firebase Module: Firestore
The text was updated successfully, but these errors were encountered:
@DavidKuennen Good spot! I've just resolved this and pushed up a change which will be released in our next patch release. In the meantime, you can try it out by doing the following:
I noticed some differences / complications for the implementation of realtime updates between react-native-firebase and the official docs.
Example Code:
I noticed the following differences when using
docs.docChanges
:change.doc.data()
change.doc.data
change.doc.id
change.doc.path.split('/')[1]
😅The text was updated successfully, but these errors were encountered: