@@ -78,7 +78,7 @@ function NoopComponent() {
7878function createRootErrorUpdate (
7979 fiber : Fiber ,
8080 errorInfo : CapturedValue < mixed > ,
81- expirationTime : ExpirationTime ,
81+ expirationTime : ExpirationTime
8282) : Update < mixed > {
8383 const update = createUpdate ( expirationTime ) ;
8484 // Unmount the root by rendering null.
@@ -97,7 +97,7 @@ function createRootErrorUpdate(
9797function createClassErrorUpdate (
9898 fiber : Fiber ,
9999 errorInfo : CapturedValue < mixed > ,
100- expirationTime : ExpirationTime ,
100+ expirationTime : ExpirationTime
101101) : Update < mixed > {
102102 const update = createUpdate ( expirationTime ) ;
103103 update . tag = CaptureUpdate ;
@@ -135,7 +135,7 @@ function createClassErrorUpdate(
135135 fiber . expirationTime === Sync ,
136136 '%s: Error boundaries should implement getDerivedStateFromError(). ' +
137137 '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'
139139 ) ;
140140 }
141141 }
@@ -149,7 +149,7 @@ function throwException(
149149 returnFiber : Fiber ,
150150 sourceFiber : Fiber ,
151151 value : mixed ,
152- renderExpirationTime : ExpirationTime ,
152+ renderExpirationTime : ExpirationTime
153153) {
154154 // The source fiber did not complete.
155155 sourceFiber . effectTag |= Incomplete ;
@@ -205,9 +205,11 @@ function throwException(
205205 workInProgress = returnFiber ;
206206 do {
207207 if ( workInProgress . tag === SuspenseComponent ) {
208- const fallback = workInProgress . memoizedProps . fallback ;
209208 const didTimeout = workInProgress . memoizedState ;
210- if ( ! didTimeout && workInProgress . memoizedProps . fallback !== undefined ) {
209+ if (
210+ ! didTimeout &&
211+ workInProgress . memoizedProps . fallback !== undefined
212+ ) {
211213 // Found the nearest boundary.
212214
213215 // If the boundary is not in concurrent mode, we should not suspend, and
@@ -223,7 +225,7 @@ function throwException(
223225 root ,
224226 workInProgress ,
225227 sourceFiber ,
226- pingTime ,
228+ pingTime
227229 ) ;
228230 if ( enableSchedulerTracing ) {
229231 onResolveOrReject = Schedule_tracing_wrap ( onResolveOrReject ) ;
@@ -247,7 +249,7 @@ function throwException(
247249 sourceFiber . alternate ,
248250 sourceFiber ,
249251 nextChildren ,
250- renderExpirationTime ,
252+ renderExpirationTime
251253 ) ;
252254 sourceFiber . effectTag &= ~ Incomplete ;
253255
@@ -296,10 +298,10 @@ function throwException(
296298 // Difference.
297299 const earliestExpirationTime = findEarliestOutstandingPriorityLevel (
298300 root ,
299- renderExpirationTime ,
301+ renderExpirationTime
300302 ) ;
301303 const earliestExpirationTimeMs = expirationTimeToMs (
302- earliestExpirationTime ,
304+ earliestExpirationTime
303305 ) ;
304306 startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION ;
305307 }
@@ -323,7 +325,7 @@ function throwException(
323325 } while ( workInProgress !== null ) ;
324326 // No boundary was found. Fallthrough to error mode.
325327 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.'
327329 ) ;
328330 }
329331
@@ -342,7 +344,7 @@ function throwException(
342344 const update = createRootErrorUpdate (
343345 workInProgress ,
344346 errorInfo ,
345- renderExpirationTime ,
347+ renderExpirationTime
346348 ) ;
347349 enqueueCapturedUpdate ( workInProgress , update ) ;
348350 return ;
@@ -366,7 +368,7 @@ function throwException(
366368 const update = createClassErrorUpdate (
367369 workInProgress ,
368370 errorInfo ,
369- renderExpirationTime ,
371+ renderExpirationTime
370372 ) ;
371373 enqueueCapturedUpdate ( workInProgress , update ) ;
372374 return ;
@@ -381,7 +383,7 @@ function throwException(
381383
382384function unwindWork (
383385 workInProgress : Fiber ,
384- renderExpirationTime : ExpirationTime ,
386+ renderExpirationTime : ExpirationTime
385387) {
386388 switch ( workInProgress . tag ) {
387389 case ClassComponent : {
@@ -415,7 +417,7 @@ function unwindWork(
415417 invariant (
416418 ( effectTag & DidCapture ) === NoEffect ,
417419 '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.'
419421 ) ;
420422 workInProgress . effectTag = ( effectTag & ~ ShouldCapture ) | DidCapture ;
421423 return workInProgress ;
0 commit comments