質問編集履歴
1
メソッド修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,27 +48,33 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
|
51
|
+
class RoomContent extends React.Component<any, any> {
|
52
52
|
|
53
|
-
|
53
|
+
componentWillMount() {
|
54
54
|
|
55
|
-
|
55
|
+
database.ref('rooms').on('value', (snapshot) => {
|
56
56
|
|
57
|
-
|
57
|
+
console.log('realtimeDB res');
|
58
58
|
|
59
|
+
console.log(snapshot);
|
59
60
|
|
61
|
+
})
|
60
62
|
|
61
|
-
firestore.collection('rooms').get().then(data => {
|
63
|
+
firestore.collection('rooms').get().then(data => {
|
62
64
|
|
63
|
-
data.forEach(res => {
|
65
|
+
data.forEach(res => {
|
64
66
|
|
65
|
-
console.log('firestore res');
|
67
|
+
console.log('firestore res');
|
66
68
|
|
67
|
-
console.log(res.data());
|
69
|
+
console.log(res.data());
|
68
70
|
|
69
|
-
})
|
71
|
+
})
|
70
72
|
|
71
|
-
})
|
73
|
+
})
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
}
|
72
78
|
|
73
79
|
```
|
74
80
|
|