@@ -78,7 +78,7 @@ function NoopComponent() {
78
78
function createRootErrorUpdate (
79
79
fiber : Fiber ,
80
80
errorInfo : CapturedValue < mixed > ,
81
- expirationTime : ExpirationTime ,
81
+ expirationTime : ExpirationTime
82
82
) : Update < mixed > {
83
83
const update = createUpdate ( expirationTime ) ;
84
84
// Unmount the root by rendering null.
@@ -97,7 +97,7 @@ function createRootErrorUpdate(
97
97
function createClassErrorUpdate (
98
98
fiber : Fiber ,
99
99
errorInfo : CapturedValue < mixed > ,
100
- expirationTime : ExpirationTime ,
100
+ expirationTime : ExpirationTime
101
101
) : Update < mixed > {
102
102
const update = createUpdate ( expirationTime ) ;
103
103
update . tag = CaptureUpdate ;
@@ -135,7 +135,7 @@ function createClassErrorUpdate(
135
135
fiber . expirationTime === Sync ,
136
136
'%s: Error boundaries should implement getDerivedStateFromError(). ' +
137
137
'In that method, return a state update to display an error message or fallback UI.' ,
138
- getComponentName ( fiber . type ) || 'Unknown' ,
138
+ getComponentName ( fiber . type ) || 'Unknown'
139
139
) ;
140
140
}
141
141
}
@@ -149,7 +149,7 @@ function throwException(
149
149
returnFiber : Fiber ,
150
150
sourceFiber : Fiber ,
151
151
value : mixed ,
152
- renderExpirationTime : ExpirationTime ,
152
+ renderExpirationTime : ExpirationTime
153
153
) {
154
154
// The source fiber did not complete.
155
155
sourceFiber . effectTag |= Incomplete ;
@@ -205,9 +205,11 @@ function throwException(
205
205
workInProgress = returnFiber ;
206
206
do {
207
207
if ( workInProgress . tag === SuspenseComponent ) {
208
- const fallback = workInProgress . memoizedProps . fallback ;
209
208
const didTimeout = workInProgress . memoizedState ;
210
- if ( ! didTimeout && workInProgress . memoizedProps . fallback !== undefined ) {
209
+ if (
210
+ ! didTimeout &&
211
+ workInProgress . memoizedProps . fallback !== undefined
212
+ ) {
211
213
// Found the nearest boundary.
212
214
213
215
// If the boundary is not in concurrent mode, we should not suspend, and
@@ -223,7 +225,7 @@ function throwException(
223
225
root ,
224
226
workInProgress ,
225
227
sourceFiber ,
226
- pingTime ,
228
+ pingTime
227
229
) ;
228
230
if ( enableSchedulerTracing ) {
229
231
onResolveOrReject = Schedule_tracing_wrap ( onResolveOrReject ) ;
@@ -247,7 +249,7 @@ function throwException(
247
249
sourceFiber . alternate ,
248
250
sourceFiber ,
249
251
nextChildren ,
250
- renderExpirationTime ,
252
+ renderExpirationTime
251
253
) ;
252
254
sourceFiber . effectTag &= ~ Incomplete ;
253
255
@@ -296,10 +298,10 @@ function throwException(
296
298
// Difference.
297
299
const earliestExpirationTime = findEarliestOutstandingPriorityLevel (
298
300
root ,
299
- renderExpirationTime ,
301
+ renderExpirationTime
300
302
) ;
301
303
const earliestExpirationTimeMs = expirationTimeToMs (
302
- earliestExpirationTime ,
304
+ earliestExpirationTime
303
305
) ;
304
306
startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION ;
305
307
}
@@ -323,7 +325,7 @@ function throwException(
323
325
} while ( workInProgress !== null ) ;
324
326
// No boundary was found. Fallthrough to error mode.
325
327
value = new Error (
326
- 'An update was suspended, but no placeholder UI was provided.' ,
328
+ 'An update was suspended, but no placeholder UI was provided.'
327
329
) ;
328
330
}
329
331
@@ -342,7 +344,7 @@ function throwException(
342
344
const update = createRootErrorUpdate (
343
345
workInProgress ,
344
346
errorInfo ,
345
- renderExpirationTime ,
347
+ renderExpirationTime
346
348
) ;
347
349
enqueueCapturedUpdate ( workInProgress , update ) ;
348
350
return ;
@@ -366,7 +368,7 @@ function throwException(
366
368
const update = createClassErrorUpdate (
367
369
workInProgress ,
368
370
errorInfo ,
369
- renderExpirationTime ,
371
+ renderExpirationTime
370
372
) ;
371
373
enqueueCapturedUpdate ( workInProgress , update ) ;
372
374
return ;
@@ -381,7 +383,7 @@ function throwException(
381
383
382
384
function unwindWork (
383
385
workInProgress : Fiber ,
384
- renderExpirationTime : ExpirationTime ,
386
+ renderExpirationTime : ExpirationTime
385
387
) {
386
388
switch ( workInProgress . tag ) {
387
389
case ClassComponent : {
@@ -415,7 +417,7 @@ function unwindWork(
415
417
invariant (
416
418
( effectTag & DidCapture ) === NoEffect ,
417
419
'The root failed to unmount after an error. This is likely a bug in ' +
418
- 'React. Please file an issue.' ,
420
+ 'React. Please file an issue.'
419
421
) ;
420
422
workInProgress . effectTag = ( effectTag & ~ ShouldCapture ) | DidCapture ;
421
423
return workInProgress ;
0 commit comments