componentWillMount is a deprecated lifecycle method; componentDidMount should be used to kick off things like ajax. In the case of the _App hierarchy, a promise chain is used to perform initialization, and it is first started in the constructor by initializing storage. However, by the time storage is initialized, resolving the first promise, _App has already mounted. So, move it all to the componentDidMount lifecycle.master
|
|
||
| 45 |
|
45 |
|
| 46 |
|
46 |
|
| 47 |
|
47 |
|
| 48 |
|
|
|
| 49 |
|
|
|
|
48 |
|
|
|
49 |
|
|
| 50 |
|
50 |
|
| 51 |
|
51 |
|
| 52 |
|
52 |
|
|
|
||
| 93 |
|
93 |
|
| 94 |
|
94 |
|
| 95 |
|
95 |
|
| 96 |
|
|
|
| 97 |
|
|
|
|
96 |
|
|
|
97 |
|
|
| 98 |
|
98 |
|
| 99 |
|
99 |
|
| 100 |
|
100 |
|
|
|
||
| 59 |
|
59 |
|
| 60 |
|
60 |
|
| 61 |
|
61 |
|
|
62 |
|
|
| 62 |
|
63 |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
| 63 |
|
70 |
|
| 64 |
|
71 |
|
| 65 |
|
72 |
|
|
|
||
| 68 |
|
75 |
|
| 69 |
|
76 |
|
| 70 |
|
77 |
|
| 71 |
|
|
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
|
| 75 |
|
|
|
| 76 |
|
|
|
| 77 |
|
|
|
| 78 |
|
|
|
| 79 |
|
|
|
| 80 |
|
|
|
| 81 |
|
|
|
| 82 |
|
|
|
| 83 |
|
|
|
| 84 |
|
|
|
| 85 |
|
|
|
| 86 |
|
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
| 87 |
|
87 |
|
| 88 |
|
88 |
|
| 89 |
|
89 |
|
|
|
||
| 43 |
|
43 |
|
| 44 |
|
44 |
|
| 45 |
|
45 |
|
| 46 |
|
|
|
| 47 |
|
|
|
|
46 |
|
|
|
47 |
|
|
| 48 |
|
48 |
|
| 49 |
|
49 |
|
| 50 |
|
50 |
|