@@ -58,7 +58,6 @@ describe('ReactIncrementalErrorHandling', () => {
58
58
) ;
59
59
}
60
60
61
- // @gate experimental || !enableSyncDefaultUpdates
62
61
it ( 'recovers from errors asynchronously' , ( ) => {
63
62
class ErrorBoundary extends React . Component {
64
63
state = { error : null } ;
@@ -171,7 +170,6 @@ describe('ReactIncrementalErrorHandling', () => {
171
170
expect ( ReactNoop . getChildren ( ) ) . toEqual ( [ span ( 'Caught an error: oops!' ) ] ) ;
172
171
} ) ;
173
172
174
- // @gate experimental || !enableSyncDefaultUpdates
175
173
it ( 'recovers from errors asynchronously (legacy, no getDerivedStateFromError)' , ( ) => {
176
174
class ErrorBoundary extends React . Component {
177
175
state = { error : null } ;
@@ -270,7 +268,6 @@ describe('ReactIncrementalErrorHandling', () => {
270
268
expect ( ReactNoop . getChildren ( ) ) . toEqual ( [ span ( 'Caught an error: oops!' ) ] ) ;
271
269
} ) ;
272
270
273
- // @gate experimental
274
271
it ( "retries at a lower priority if there's additional pending work" , async ( ) => {
275
272
function App ( props ) {
276
273
if ( props . isBroken ) {
@@ -378,7 +375,6 @@ describe('ReactIncrementalErrorHandling', () => {
378
375
) ;
379
376
} ) ;
380
377
381
- // @gate experimental || !enableSyncDefaultUpdates
382
378
it ( 'retries one more time before handling error' , ( ) => {
383
379
function BadRender ( { unused} ) {
384
380
Scheduler . unstable_yieldValue ( 'BadRender' ) ;
@@ -429,7 +425,6 @@ describe('ReactIncrementalErrorHandling', () => {
429
425
expect ( ReactNoop . getChildren ( ) ) . toEqual ( [ ] ) ;
430
426
} ) ;
431
427
432
- // @gate experimental || !enableSyncDefaultUpdates
433
428
it ( 'retries one more time if an error occurs during a render that expires midway through the tree' , async ( ) => {
434
429
function Oops ( { unused} ) {
435
430
Scheduler . unstable_yieldValue ( 'Oops' ) ;
@@ -566,7 +561,6 @@ describe('ReactIncrementalErrorHandling', () => {
566
561
expect ( ReactNoop . getChildren ( ) ) . toEqual ( [ span ( 'Caught an error: Hello.' ) ] ) ;
567
562
} ) ;
568
563
569
- // @gate experimental || !enableSyncDefaultUpdates
570
564
it ( 'catches render error in a boundary during partial deferred mounting' , ( ) => {
571
565
class ErrorBoundary extends React . Component {
572
566
state = { error : null } ;
@@ -757,7 +751,6 @@ describe('ReactIncrementalErrorHandling', () => {
757
751
expect ( ReactNoop . getChildren ( ) ) . toEqual ( [ ] ) ;
758
752
} ) ;
759
753
760
- // @gate experimental || !enableSyncDefaultUpdates
761
754
it ( 'propagates an error from a noop error boundary during partial deferred mounting' , ( ) => {
762
755
class RethrowErrorBoundary extends React . Component {
763
756
componentDidCatch ( error ) {
@@ -1842,7 +1835,6 @@ describe('ReactIncrementalErrorHandling', () => {
1842
1835
} ) ;
1843
1836
}
1844
1837
1845
- // @gate experimental
1846
1838
it ( 'uncaught errors should be discarded if the render is aborted' , async ( ) => {
1847
1839
const root = ReactNoop . createRoot ( ) ;
1848
1840
@@ -1875,7 +1867,6 @@ describe('ReactIncrementalErrorHandling', () => {
1875
1867
expect ( root ) . toMatchRenderedOutput ( 'Everything is fine.' ) ;
1876
1868
} ) ;
1877
1869
1878
- // @gate experimental
1879
1870
it ( 'uncaught errors are discarded if the render is aborted, case 2' , async ( ) => {
1880
1871
const { useState} = React ;
1881
1872
const root = ReactNoop . createRoot ( ) ;
0 commit comments