@@ -107,7 +107,7 @@ describe('ReactSuspense', () => {
107
107
< Suspense fallback = { < Text text = "Loading..." /> } >
108
108
{ renderBar ? (
109
109
< Bar >
110
- < AsyncText text = "A" ms = { 100 } />
110
+ < AsyncText text = "A" />
111
111
< Text text = "B" />
112
112
</ Bar >
113
113
) : null }
@@ -153,10 +153,10 @@ describe('ReactSuspense', () => {
153
153
root . render (
154
154
< >
155
155
< Suspense fallback = { < Text text = "Loading A..." /> } >
156
- < AsyncText text = "A" ms = { 5000 } />
156
+ < AsyncText text = "A" />
157
157
</ Suspense >
158
158
< Suspense fallback = { < Text text = "Loading B..." /> } >
159
- < AsyncText text = "B" ms = { 6000 } />
159
+ < AsyncText text = "B" />
160
160
</ Suspense >
161
161
</ > ,
162
162
) ;
@@ -258,9 +258,9 @@ describe('ReactSuspense', () => {
258
258
Scheduler . log ( 'Foo' ) ;
259
259
return (
260
260
< Suspense fallback = { < Text text = "Loading..." /> } >
261
- < AsyncText text = "A" ms = { 200 } />
261
+ < AsyncText text = "A" />
262
262
< Suspense fallback = { < Text text = "Loading more..." /> } >
263
- < AsyncText text = "B" ms = { 300 } />
263
+ < AsyncText text = "B" />
264
264
</ Suspense >
265
265
</ Suspense >
266
266
) ;
@@ -294,9 +294,9 @@ describe('ReactSuspense', () => {
294
294
Scheduler . log ( 'Foo' ) ;
295
295
return (
296
296
< Suspense fallback = { < Text text = "Loading..." /> } >
297
- < AsyncText text = "A" ms = { 200 } />
297
+ < AsyncText text = "A" />
298
298
< Suspense fallback = { < Text text = "Loading more..." /> } >
299
- < AsyncText text = "B" ms = { 1200 } />
299
+ < AsyncText text = "B" />
300
300
</ Suspense >
301
301
</ Suspense >
302
302
) ;
@@ -346,7 +346,7 @@ describe('ReactSuspense', () => {
346
346
< >
347
347
< Text text = { `A${ step } ` } />
348
348
< Suspense fallback = { < Text text = "Loading..." /> } >
349
- { shouldSuspend ? < AsyncText text = "Async" ms = { 2000 } /> : null }
349
+ { shouldSuspend ? < AsyncText text = "Async" /> : null }
350
350
</ Suspense >
351
351
< Text text = { `B${ step } ` } />
352
352
< Text text = { `C${ step } ` } />
@@ -627,7 +627,7 @@ describe('ReactSuspense', () => {
627
627
return (
628
628
< Suspense fallback = { < Text text = "Loading..." /> } >
629
629
< TextWithLayout text = "Child 1" />
630
- { show && < AsyncText ms = { 1000 } text = "Child 2" /> }
630
+ { show && < AsyncText text = "Child 2" /> }
631
631
</ Suspense >
632
632
) ;
633
633
}
@@ -722,7 +722,7 @@ describe('ReactSuspense', () => {
722
722
return (
723
723
< Suspense fallback = { < TextWithLifecycle text = "Loading..." /> } >
724
724
< TextWithLifecycle text = "A" />
725
- < AsyncTextWithLifecycle ms = { 100 } text = "B" ref = { instance } />
725
+ < AsyncTextWithLifecycle text = "B" ref = { instance } />
726
726
< TextWithLifecycle text = "C" />
727
727
</ Suspense >
728
728
) ;
@@ -776,7 +776,7 @@ describe('ReactSuspense', () => {
776
776
return (
777
777
< Suspense fallback = { < Text text = "Loading..." /> } >
778
778
< Stateful />
779
- < AsyncText ms = { 1000 } text = { props . text } />
779
+ < AsyncText text = { props . text } />
780
780
</ Suspense >
781
781
) ;
782
782
}
@@ -822,7 +822,7 @@ describe('ReactSuspense', () => {
822
822
< Indirection >
823
823
< Indirection >
824
824
< Indirection >
825
- < AsyncText ms = { 1000 } text = { props . text } />
825
+ < AsyncText text = { props . text } />
826
826
</ Indirection >
827
827
</ Indirection >
828
828
</ Indirection >
@@ -872,7 +872,7 @@ describe('ReactSuspense', () => {
872
872
function App ( { text} ) {
873
873
return (
874
874
< Suspense fallback = { < Text text = "Loading..." /> } >
875
- < AsyncTextWithUnmount text = { text } ms = { 100 } />
875
+ < AsyncTextWithUnmount text = { text } />
876
876
</ Suspense >
877
877
) ;
878
878
}
@@ -902,7 +902,7 @@ describe('ReactSuspense', () => {
902
902
function App ( { text} ) {
903
903
return (
904
904
< Suspense fallback = { < Text text = "Loading..." /> } >
905
- < AsyncTextWithEffect text = { text } ms = { 100 } />
905
+ < AsyncTextWithEffect text = { text } />
906
906
</ Suspense >
907
907
) ;
908
908
}
@@ -920,7 +920,7 @@ describe('ReactSuspense', () => {
920
920
state = { step : 1 } ;
921
921
render ( ) {
922
922
instance = this ;
923
- return < AsyncText ms = { 1000 } text = { `Step: ${ this . state . step } ` } /> ;
923
+ return < AsyncText text = { `Step: ${ this . state . step } ` } /> ;
924
924
}
925
925
}
926
926
@@ -976,9 +976,9 @@ describe('ReactSuspense', () => {
976
976
function App ( props ) {
977
977
return (
978
978
< Suspense fallback = { < ShouldMountOnce /> } >
979
- < AsyncText ms = { 1000 } text = "Child 1" />
980
- < AsyncText ms = { 2000 } text = "Child 2" />
981
- < AsyncText ms = { 3000 } text = "Child 3" />
979
+ < AsyncText text = "Child 1" />
980
+ < AsyncText text = "Child 2" />
981
+ < AsyncText text = "Child 3" />
982
982
</ Suspense >
983
983
) ;
984
984
}
@@ -1019,7 +1019,7 @@ describe('ReactSuspense', () => {
1019
1019
1020
1020
return (
1021
1021
< Suspense fallback = { < Text text = "Loading..." /> } >
1022
- < AsyncText key = { tab } text = { 'Tab: ' + tab } ms = { 1000 } />
1022
+ < AsyncText key = { tab } text = { 'Tab: ' + tab } />
1023
1023
< Text key = { tab + 'sibling' } text = " + sibling" />
1024
1024
</ Suspense >
1025
1025
) ;
@@ -1087,9 +1087,9 @@ describe('ReactSuspense', () => {
1087
1087
function App ( ) {
1088
1088
return (
1089
1089
< Suspense fallback = { < Text text = "Loading..." /> } >
1090
- < AsyncText text = "A" ms = { 1000 } />
1091
- < AsyncText text = "B" ms = { 2000 } />
1092
- < AsyncText text = "C" ms = { 3000 } />
1090
+ < AsyncText text = "A" />
1091
+ < AsyncText text = "B" />
1092
+ < AsyncText text = "C" />
1093
1093
</ Suspense >
1094
1094
) ;
1095
1095
}
0 commit comments