1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
3
exports[`ReactDebugFiberPerf captures all lifecycles 1`] = `
4
-"⚛ (Waiting for async callback...)
4
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
5
6
// Mount
7
⚛ (React Tree Reconciliation)
15
⚛ (Calling Lifecycle Methods: 1 Total)
16
⚛ AllLifecycles.componentDidMount
17
18
-⚛ (Waiting for async callback...)
18
+⚛ (Waiting for async callback... will force flush in 5230 ms)
19
20
// Update
21
⚛ (React Tree Reconciliation)
31
⚛ (Calling Lifecycle Methods: 2 Total)
32
⚛ AllLifecycles.componentDidUpdate
33
34
-⚛ (Waiting for async callback...)
34
+⚛ (Waiting for async callback... will force flush in 5230 ms)
35
36
// Unmount
37
⚛ (React Tree Reconciliation)
45
`;
46
47
exports[`ReactDebugFiberPerf deduplicates lifecycle names during commit to reduce overhead 1`] = `
48
-"⚛ (Waiting for async callback...)
48
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
49
50
// The commit phase should mention A and B just once
51
⚛ (React Tree Reconciliation)
62
⚛ A.componentDidUpdate
63
⚛ B.componentDidUpdate
64
65
-⚛ (Waiting for async callback...)
65
+⚛ (Waiting for async callback... will force flush in 5230 ms)
66
67
// Because of deduplication, we don't know B was cascading,
68
// but we should still see the warning for the commit phase.
112
`;
113
114
exports[`ReactDebugFiberPerf does not treat setState from cWM or cWRP as cascading 1`] = `
115
-"⚛ (Waiting for async callback...)
115
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
116
117
// Should not print a warning
118
⚛ (React Tree Reconciliation)
125
⚛ (Committing Host Effects: 1 Total)
126
⚛ (Calling Lifecycle Methods: 0 Total)
127
128
-⚛ (Waiting for async callback...)
128
+⚛ (Waiting for async callback... will force flush in 5230 ms)
129
130
// Should not print a warning
131
⚛ (React Tree Reconciliation)
141
`;
142
143
exports[`ReactDebugFiberPerf measures a simple reconciliation 1`] = `
144
-"⚛ (Waiting for async callback...)
144
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
145
146
// Mount
147
⚛ (React Tree Reconciliation)
153
⚛ (Committing Host Effects: 1 Total)
154
⚛ (Calling Lifecycle Methods: 0 Total)
155
156
-⚛ (Waiting for async callback...)
156
+⚛ (Waiting for async callback... will force flush in 5230 ms)
157
158
// Update
159
⚛ (React Tree Reconciliation)
165
⚛ (Committing Host Effects: 2 Total)
166
⚛ (Calling Lifecycle Methods: 2 Total)
167
168
-⚛ (Waiting for async callback...)
168
+⚛ (Waiting for async callback... will force flush in 5230 ms)
169
170
// Unmount
171
⚛ (React Tree Reconciliation)
178
`;
179
180
exports[`ReactDebugFiberPerf measures deferred work in chunks 1`] = `
181
-"⚛ (Waiting for async callback...)
181
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
182
183
// Start mounting Parent and A
184
⚛ (React Tree Reconciliation)
186
⚛ A [mount]
187
⚛ Child [mount]
188
189
-⚛ (Waiting for async callback...)
189
+⚛ (Waiting for async callback... will force flush in 5230 ms)
190
191
// Mount B just a little (but not enough to memoize)
192
⚛ (React Tree Reconciliation)
193
⚛ Parent [mount]
194
⚛ B [mount]
195
196
-⚛ (Waiting for async callback...)
196
+⚛ (Waiting for async callback... will force flush in 5230 ms)
197
198
// Complete B and Parent
199
⚛ (React Tree Reconciliation)
218
⚛ (Committing Host Effects: 1 Total)
219
⚛ (Calling Lifecycle Methods: 0 Total)
220
221
-⚛ (Waiting for async callback...)
221
+⚛ (Waiting for async callback... will force flush in 10737418210 ms)
222
223
// Flush the child
224
⚛ (React Tree Reconciliation)
232
`;
233
234
exports[`ReactDebugFiberPerf recovers from caught errors 1`] = `
235
-"⚛ (Waiting for async callback...)
235
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
236
237
// Stop on Baddie and restart from Boundary
238
⚛ (React Tree Reconciliation)
262
`;
263
264
exports[`ReactDebugFiberPerf recovers from fatal errors 1`] = `
265
-"⚛ (Waiting for async callback...)
265
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
266
267
// Will fatal
268
⚛ (React Tree Reconciliation)
276
⚛ (Committing Host Effects: 1 Total)
277
⚛ (Calling Lifecycle Methods: 0 Total)
278
279
-⚛ (Waiting for async callback...)
279
+⚛ (Waiting for async callback... will force flush in 5230 ms)
280
281
// Will reconcile from a clean state
282
⚛ (React Tree Reconciliation)
291
`;
292
293
exports[`ReactDebugFiberPerf skips parents during setState 1`] = `
294
-"⚛ (Waiting for async callback...)
294
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
295
296
// Should include just A and B, no Parents
297
⚛ (React Tree Reconciliation)
306
`;
307
308
exports[`ReactDebugFiberPerf supports portals 1`] = `
309
-"⚛ (Waiting for async callback...)
309
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
310
311
⚛ (React Tree Reconciliation)
312
⚛ Parent [mount]
320
`;
321
322
exports[`ReactDebugFiberPerf supports returns 1`] = `
323
-"⚛ (Waiting for async callback...)
323
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
324
325
⚛ (React Tree Reconciliation)
326
⚛ App [mount]
339
`;
340
341
exports[`ReactDebugFiberPerf warns if an in-progress update is interrupted 1`] = `
342
-"⚛ (Waiting for async callback...)
342
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
343
344
⚛ (React Tree Reconciliation)
345
⚛ Foo [mount]
346
347
-⚛ (Waiting for async callback...)
347
+⚛ (Waiting for async callback... will force flush in 5230 ms)
348
⛔ (React Tree Reconciliation) Warning: A top-level update interrupted the previous render
349
⚛ Foo [mount]
350
⚛ (Committing Changes)
362
`;
363
364
exports[`ReactDebugFiberPerf warns if async work expires (starvation) 1`] = `
365
-"⛔ (Waiting for async callback...) Warning: React was blocked by main thread
365
+"⛔ (Waiting for async callback... will force flush in 5230 ms) Warning: React was blocked by main thread
366
367
⚛ (React Tree Reconciliation)
368
⚛ Foo [mount]
375
`;
376
377
exports[`ReactDebugFiberPerf warns on cascading renders from setState 1`] = `
378
-"⚛ (Waiting for async callback...)
378
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
379
380
// Should print a warning
381
⚛ (React Tree Reconciliation)
399
`;
400
401
exports[`ReactDebugFiberPerf warns on cascading renders from top-level render 1`] = `
402
-"⚛ (Waiting for async callback...)
402
+"⚛ (Waiting for async callback... will force flush in 5230 ms)
403
404
// Rendering the first root
405
⚛ (React Tree Reconciliation)