@@ -140,10 +140,10 @@ describe('ReactSuspense', () => {
140
140
// Render two sibling Suspense components
141
141
const root = ReactTestRenderer . create (
142
142
< React . Fragment >
143
- < Suspense maxDuration = { 1000 } fallback = { < Text text = "Loading A..." /> } >
143
+ < Suspense fallback = { < Text text = "Loading A..." /> } >
144
144
< AsyncText text = "A" ms = { 5000 } />
145
145
</ Suspense >
146
- < Suspense maxDuration = { 3000 } fallback = { < Text text = "Loading B..." /> } >
146
+ < Suspense fallback = { < Text text = "Loading B..." /> } >
147
147
< AsyncText text = "B" ms = { 6000 } />
148
148
</ Suspense >
149
149
</ React . Fragment > ,
@@ -211,7 +211,7 @@ describe('ReactSuspense', () => {
211
211
}
212
212
213
213
const root = ReactTestRenderer . create (
214
- < Suspense maxDuration = { 1000 } fallback = { < Text text = "Loading..." /> } >
214
+ < Suspense fallback = { < Text text = "Loading..." /> } >
215
215
< Async />
216
216
< Text text = "Sibling" />
217
217
</ Suspense > ,
@@ -272,7 +272,7 @@ describe('ReactSuspense', () => {
272
272
it ( 'only captures if `fallback` is defined' , ( ) => {
273
273
const root = ReactTestRenderer . create (
274
274
< Suspense fallback = { < Text text = "Loading..." /> } >
275
- < Suspense maxDuration = { 100 } >
275
+ < Suspense >
276
276
< AsyncText text = "Hi" ms = { 5000 } />
277
277
</ Suspense >
278
278
</ Suspense > ,
@@ -368,9 +368,7 @@ describe('ReactSuspense', () => {
368
368
369
369
function App ( ) {
370
370
return (
371
- < Suspense
372
- maxDuration = { 1000 }
373
- fallback = { < TextWithLifecycle text = "Loading..." /> } >
371
+ < Suspense fallback = { < TextWithLifecycle text = "Loading..." /> } >
374
372
< TextWithLifecycle text = "A" />
375
373
< AsyncTextWithLifecycle ms = { 100 } text = "B" ref = { instance } />
376
374
< TextWithLifecycle text = "C" />
@@ -631,7 +629,7 @@ describe('ReactSuspense', () => {
631
629
632
630
function App ( props ) {
633
631
return (
634
- < Suspense maxDuration = { 10 } fallback = { < Text text = "Loading..." /> } >
632
+ < Suspense fallback = { < Text text = "Loading..." /> } >
635
633
< Stateful />
636
634
</ Suspense >
637
635
) ;
@@ -681,7 +679,7 @@ describe('ReactSuspense', () => {
681
679
682
680
function App ( props ) {
683
681
return (
684
- < Suspense maxDuration = { 10 } fallback = { < ShouldMountOnce /> } >
682
+ < Suspense fallback = { < ShouldMountOnce /> } >
685
683
< AsyncText ms = { 1000 } text = "Child 1" />
686
684
< AsyncText ms = { 2000 } text = "Child 2" />
687
685
< AsyncText ms = { 3000 } text = "Child 3" />
@@ -726,7 +724,7 @@ describe('ReactSuspense', () => {
726
724
it ( 'does not get stuck with fallback in concurrent mode for a large delay' , ( ) => {
727
725
function App ( props ) {
728
726
return (
729
- < Suspense maxDuration = { 10 } fallback = { < Text text = "Loading..." /> } >
727
+ < Suspense fallback = { < Text text = "Loading..." /> } >
730
728
< AsyncText ms = { 1000 } text = "Child 1" />
731
729
< AsyncText ms = { 7000 } text = "Child 2" />
732
730
</ Suspense >
0 commit comments