@@ -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 ;
@@ -225,7 +225,7 @@ function throwException(
225
225
root ,
226
226
workInProgress ,
227
227
sourceFiber ,
228
- pingTime
228
+ pingTime ,
229
229
) ;
230
230
if ( enableSchedulerTracing ) {
231
231
onResolveOrReject = Schedule_tracing_wrap ( onResolveOrReject ) ;
@@ -249,7 +249,7 @@ function throwException(
249
249
sourceFiber . alternate ,
250
250
sourceFiber ,
251
251
nextChildren ,
252
- renderExpirationTime
252
+ renderExpirationTime ,
253
253
) ;
254
254
sourceFiber . effectTag &= ~ Incomplete ;
255
255
@@ -298,10 +298,10 @@ function throwException(
298
298
// Difference.
299
299
const earliestExpirationTime = findEarliestOutstandingPriorityLevel (
300
300
root ,
301
- renderExpirationTime
301
+ renderExpirationTime ,
302
302
) ;
303
303
const earliestExpirationTimeMs = expirationTimeToMs (
304
- earliestExpirationTime
304
+ earliestExpirationTime ,
305
305
) ;
306
306
startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION ;
307
307
}
@@ -325,7 +325,7 @@ function throwException(
325
325
} while ( workInProgress !== null ) ;
326
326
// No boundary was found. Fallthrough to error mode.
327
327
value = new Error (
328
- 'An update was suspended, but no placeholder UI was provided.'
328
+ 'An update was suspended, but no placeholder UI was provided.' ,
329
329
) ;
330
330
}
331
331
@@ -344,7 +344,7 @@ function throwException(
344
344
const update = createRootErrorUpdate (
345
345
workInProgress ,
346
346
errorInfo ,
347
- renderExpirationTime
347
+ renderExpirationTime ,
348
348
) ;
349
349
enqueueCapturedUpdate ( workInProgress , update ) ;
350
350
return ;
@@ -368,7 +368,7 @@ function throwException(
368
368
const update = createClassErrorUpdate (
369
369
workInProgress ,
370
370
errorInfo ,
371
- renderExpirationTime
371
+ renderExpirationTime ,
372
372
) ;
373
373
enqueueCapturedUpdate ( workInProgress , update ) ;
374
374
return ;
@@ -383,7 +383,7 @@ function throwException(
383
383
384
384
function unwindWork (
385
385
workInProgress : Fiber ,
386
- renderExpirationTime : ExpirationTime
386
+ renderExpirationTime : ExpirationTime ,
387
387
) {
388
388
switch ( workInProgress . tag ) {
389
389
case ClassComponent : {
@@ -417,7 +417,7 @@ function unwindWork(
417
417
invariant (
418
418
( effectTag & DidCapture ) === NoEffect ,
419
419
'The root failed to unmount after an error. This is likely a bug in ' +
420
- 'React. Please file an issue.'
420
+ 'React. Please file an issue.' ,
421
421
) ;
422
422
workInProgress . effectTag = ( effectTag & ~ ShouldCapture ) | DidCapture ;
423
423
return workInProgress ;
0 commit comments