Firebase V9 Firestore Get Document Data With Real-Time Updates
2 min readJan 13, 2023
Learn how to get document data with real-time updates using the onSnapshot() method from Cloud Firestore in Firebase version 9.
- Get Documents With Real-Time Updates Using onSnapshot() → you’re here
- Get Documents From A Collection Once using getDocs()
- Get Document By ID
The sample Firestore Database has a cities collection that has two documents in it, like in the screenshot below.