Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.db.collection('settings').onSnapshot(snapshot => {
- snapshot.forEach(doc => {
- this.cachedSettings[doc.id] = doc.data();
- });
- });
- this.db.collection('settings').onSnapshot(snapshot => {
- snapshot.forEach(({ id, data }) => {
- this.cachedSettings[id] = data();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement