質問編集履歴
2
nai
test
CHANGED
File without changes
|
test
CHANGED
@@ -162,20 +162,80 @@
|
|
162
162
|
|
163
163
|
```
|
164
164
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
165
|
+
firebaseのソースコード
|
166
|
+
|
170
|
-
|
167
|
+
```
|
168
|
+
|
171
|
-
|
169
|
+
{
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
170
|
+
|
177
|
-
|
171
|
+
"userInfo" : [ null, {
|
172
|
+
|
178
|
-
|
173
|
+
"ID" : "toi",
|
174
|
+
|
179
|
-
|
175
|
+
"Pass" : "ace",
|
176
|
+
|
180
|
-
|
177
|
+
"easyTime" : 0,
|
178
|
+
|
179
|
+
"hardTime" : 0,
|
180
|
+
|
181
|
+
"nomalTime" : 0
|
182
|
+
|
183
|
+
}, {
|
184
|
+
|
185
|
+
"ID" : "bbb",
|
186
|
+
|
187
|
+
"Pass" : "ace",
|
188
|
+
|
189
|
+
"easyTime" : 0,
|
190
|
+
|
191
|
+
"hardTime" : 0,
|
192
|
+
|
193
|
+
"nomalTime" : 0
|
194
|
+
|
195
|
+
}, {
|
196
|
+
|
197
|
+
"ID" : "ddd",
|
198
|
+
|
199
|
+
"Pass" : "ace",
|
200
|
+
|
201
|
+
"easyTime" : 0,
|
202
|
+
|
203
|
+
"hardTime" : 0,
|
204
|
+
|
205
|
+
"nomalTime" : 0
|
206
|
+
|
207
|
+
}, {
|
208
|
+
|
209
|
+
"ID" : "eee",
|
210
|
+
|
211
|
+
"Pass" : "ace",
|
212
|
+
|
213
|
+
"easyTime" : 0,
|
214
|
+
|
215
|
+
"hardTime" : 0,
|
216
|
+
|
217
|
+
"nomalTime" : 0
|
218
|
+
|
219
|
+
}, {
|
220
|
+
|
221
|
+
"ID" : "ccc",
|
222
|
+
|
223
|
+
"easyTime" : 0,
|
224
|
+
|
225
|
+
"hardTime" : 0,
|
226
|
+
|
227
|
+
"nomalTime" : 0,
|
228
|
+
|
229
|
+
"pass" : "ace"
|
230
|
+
|
231
|
+
}, {
|
232
|
+
|
181
|
-
|
233
|
+
"ID" : 9
|
234
|
+
|
235
|
+
} ]
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
```
|
1
nai
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Reactで
|
1
|
+
ReactでFirebaseの値の受け渡しができない?!
|
test
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
Firebaseについて質問したいのですが、Realtime Databaseの値の受け渡しがページ遷移時だけできないのですが、原因は何でしょうか?
|
4
4
|
|
5
5
|
this.state.data[1].IDに、値を出力したいです。
|
6
|
+
|
7
|
+
Reactを使っています。
|
6
8
|
|
7
9
|
|
8
10
|
|
@@ -14,15 +16,13 @@
|
|
14
16
|
|
15
17
|
```
|
16
18
|
|
17
|
-
|
18
|
-
|
19
19
|
TypeError: Cannot read property 'ID' of undefined
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
ソースコード
|
25
|
+
###ソースコード
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -150,9 +150,7 @@
|
|
150
150
|
|
151
151
|
<div><span style={{paddingRight:100}}>f</span> <span>f1</span></div> <br />
|
152
152
|
|
153
|
-
</div>
|
153
|
+
</div>
|
154
|
-
|
155
|
-
|
156
154
|
|
157
155
|
);
|
158
156
|
|
@@ -172,7 +170,7 @@
|
|
172
170
|
|
173
171
|
|
174
172
|
|
175
|
-
|
173
|
+
|
176
174
|
|
177
175
|
|
178
176
|
|